Kaydet (Commit) eac8f638 authored tarafından Szymon Kłos's avatar Szymon Kłos

don't show edit menu when there is no selected service

Change-Id: I6b5f713926383d776aa687801f6bef239c9675cb
üst 3734363b
...@@ -354,6 +354,7 @@ short RemoteFilesDialog::Execute() ...@@ -354,6 +354,7 @@ short RemoteFilesDialog::Execute()
if( !m_bIsConnected ) if( !m_bIsConnected )
{ {
m_pServices_lb->SetNoSelection(); m_pServices_lb->SetNoSelection();
m_pAddService_btn->SetPopupMenu( NULL );
} }
short nRet = SvtFileDialog_Base::Execute(); short nRet = SvtFileDialog_Base::Execute();
...@@ -654,6 +655,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, SelectServiceHdl ) ...@@ -654,6 +655,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, SelectServiceHdl )
if( nPos >= 0 ) if( nPos >= 0 )
{ {
OUString sURL = m_aServices[nPos]->GetUrl(); OUString sURL = m_aServices[nPos]->GetUrl();
m_pAddService_btn->SetPopupMenu( m_pAddMenu );
m_bServiceChanged = true; m_bServiceChanged = true;
OpenURL( sURL ); OpenURL( sURL );
......
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