Kaydet (Commit) 2a5b3c02 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:defaultparams

Change-Id: I6372cf755a78772094bf5fdcb076cc6ea395fc89
üst 4cf1a6ba
...@@ -619,7 +619,7 @@ void RemoteFilesDialog::EnableControls() ...@@ -619,7 +619,7 @@ void RemoteFilesDialog::EnableControls()
{ {
if( m_pServices_lb->GetEntryCount() > 0 ) if( m_pServices_lb->GetEntryCount() > 0 )
{ {
m_pServices_lb->Enable( true ); m_pServices_lb->Enable();
if( m_pServices_lb->GetSelectEntryCount() ) if( m_pServices_lb->GetSelectEntryCount() )
{ {
...@@ -653,12 +653,12 @@ void RemoteFilesDialog::EnableControls() ...@@ -653,12 +653,12 @@ void RemoteFilesDialog::EnableControls()
if( m_bIsConnected ) if( m_bIsConnected )
{ {
m_pFilter_lb->Enable( true ); m_pFilter_lb->Enable();
m_pName_ed->Enable( true ); m_pName_ed->Enable();
m_pContainer->Enable( true ); m_pContainer->Enable();
if( !m_pName_ed->GetText().isEmpty() ) if( !m_pName_ed->GetText().isEmpty() )
m_pOk_btn->Enable( true ); m_pOk_btn->Enable();
else else
m_pOk_btn->Enable( false ); m_pOk_btn->Enable( false );
} }
...@@ -671,7 +671,7 @@ void RemoteFilesDialog::EnableControls() ...@@ -671,7 +671,7 @@ void RemoteFilesDialog::EnableControls()
} }
m_pPath->EnableFields( true ); m_pPath->EnableFields( true );
m_pAddService_btn->Enable( true ); m_pAddService_btn->Enable();
Invalidate(InvalidateFlags::Update); Invalidate(InvalidateFlags::Update);
} }
...@@ -686,7 +686,7 @@ void RemoteFilesDialog::DisableControls() ...@@ -686,7 +686,7 @@ void RemoteFilesDialog::DisableControls()
m_pOk_btn->Enable( false ); m_pOk_btn->Enable( false );
m_pPath->EnableFields( false ); m_pPath->EnableFields( false );
m_pCancel_btn->Enable( true ); m_pCancel_btn->Enable();
} }
void RemoteFilesDialog::SavePassword( const OUString& rURL, const OUString& rUser void RemoteFilesDialog::SavePassword( const OUString& rURL, const OUString& rUser
......
...@@ -1814,7 +1814,7 @@ void SvtFileDialog::onAsyncOperationStarted() ...@@ -1814,7 +1814,7 @@ void SvtFileDialog::onAsyncOperationStarted()
{ {
EnableUI( false ); EnableUI( false );
// the cancel button must be always enabled // the cancel button must be always enabled
_pImp->_pBtnCancel->Enable( true ); _pImp->_pBtnCancel->Enable();
_pImp->_pBtnCancel->GrabFocus(); _pImp->_pBtnCancel->GrabFocus();
} }
...@@ -2919,7 +2919,7 @@ IMPL_LINK_NOARG_TYPED(QueryFolderNameDialog, NameHdl, Edit&, void) ...@@ -2919,7 +2919,7 @@ IMPL_LINK_NOARG_TYPED(QueryFolderNameDialog, NameHdl, Edit&, void)
if ( !aName.isEmpty() ) if ( !aName.isEmpty() )
{ {
if ( !m_pOKBtn->IsEnabled() ) if ( !m_pOKBtn->IsEnabled() )
m_pOKBtn->Enable( true ); m_pOKBtn->Enable();
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment