diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/ConnectionPage.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/ConnectionPage.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionPage.cxx b/dbaccess/source/ui/dlg/ConnectionPage.cxx index 93ac96e8bf62..d7bf779767a6 100644 --- a/dbaccess/source/ui/dlg/ConnectionPage.cxx +++ b/dbaccess/source/ui/dlg/ConnectionPage.cxx @@ -101,9 +101,9 @@ namespace dbaui get(m_pTestConnection, "connectionButton"); m_pConnectionURL->SetModifyHdl(LINK(this, OConnectionTabPage, OnEditModified)); - m_pJavaDriver->SetModifyHdl(LINK(this, OGenericAdministrationPage, OnControlModified)); + m_pJavaDriver->SetModifyHdl(LINK(this, OGenericAdministrationPage, OnControlEditModifyHdl)); m_pJavaDriver->SetModifyHdl(LINK(this, OConnectionTabPage, OnEditModified)); - m_pUserName->SetModifyHdl(LINK(this, OGenericAdministrationPage, OnControlModified)); + m_pUserName->SetModifyHdl(LINK(this, OGenericAdministrationPage, OnControlEditModifyHdl)); m_pPasswordRequired->SetClickHdl(LINK(this, OGenericAdministrationPage, OnControlModifiedClick)); m_pTestConnection->SetClickHdl(LINK(this,OGenericAdministrationPage,OnTestConnectionClickHdl)); @@ -210,7 +210,6 @@ namespace dbaui break; } - ; AuthenticationMode eAuthMode( DataSourceMetaData::getAuthentication( m_eType ) ); bool bShowUserAuthenfication = ( eAuthMode != AuthNone ); bool bShowUser = ( eAuthMode == AuthUserPwd ); @@ -321,15 +320,14 @@ namespace dbaui m_pTestConnection->Enable(bEnableTestConnection); return true; } - IMPL_LINK(OConnectionTabPage, OnEditModified, Edit*, _pEdit) + IMPL_LINK_TYPED(OConnectionTabPage, OnEditModified, Edit&, _rEdit, void) { - if ( _pEdit == m_pJavaDriver ) + if ( &_rEdit == m_pJavaDriver ) m_pTestJavaDriver->Enable( !m_pJavaDriver->GetText().trim().isEmpty() ); checkTestConnection(); // tell the listener we were modified callModifiedHdl(); - return 0L; } } // namespace dbaui |