diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/directsql.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/directsql.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/directsql.cxx b/dbaccess/source/ui/dlg/directsql.cxx index 120d075411f5..b97d8ed546cc 100644 --- a/dbaccess/source/ui/dlg/directsql.cxx +++ b/dbaccess/source/ui/dlg/directsql.cxx @@ -60,7 +60,7 @@ namespace dbaui m_pSQL->GrabFocus(); m_pExecute->SetClickHdl(LINK(this, DirectSQLDialog, OnExecute)); - m_pClose->SetClickHdl(LINK(this, DirectSQLDialog, OnClose)); + m_pClose->SetClickHdl(LINK(this, DirectSQLDialog, OnCloseClick)); m_pSQLHistory->SetSelectHdl(LINK(this, DirectSQLDialog, OnListEntrySelected)); m_pSQLHistory->SetDropDownLineCount(10); @@ -314,16 +314,19 @@ namespace dbaui return 0L; } + IMPL_LINK_NOARG_TYPED( DirectSQLDialog, OnCloseClick, Button*, void ) + { + EndDialog( RET_OK ); + } IMPL_LINK_NOARG( DirectSQLDialog, OnClose ) { EndDialog( RET_OK ); return 0L; } - IMPL_LINK_NOARG( DirectSQLDialog, OnExecute ) + IMPL_LINK_NOARG_TYPED( DirectSQLDialog, OnExecute, Button*, void ) { executeCurrent(); - return 0L; } IMPL_LINK_NOARG( DirectSQLDialog, OnListEntrySelected ) |