From 8029a7b3e532ba00a5dd08658bcd8ae57b5035a7 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Tue, 4 Aug 2015 15:06:37 +0200 Subject: no selection after deletion of a service Change-Id: Id59a55a2af74851ff7b2fa8d6af30350347eb4c6 --- fpicker/source/office/RemoteFilesDialog.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index f998633b69a4..11278f24b87f 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -719,15 +719,8 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton, m_aServices.erase( m_aServices.begin() + nPos ); m_pServices_lb->RemoveEntry( nSelected ); - if( m_pServices_lb->GetEntryCount() > 0 ) - { - m_pServices_lb->SelectEntryPos( 0 ); - } - else - { - m_pServices_lb->SetNoSelection(); - m_pAddService_btn->SetPopupMenu( NULL ); - } + m_pServices_lb->SetNoSelection(); + m_pAddService_btn->SetPopupMenu( NULL ); m_bIsUpdated = true; } -- cgit