summaryrefslogtreecommitdiffstats
path: root/fpicker
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-07-24 09:47:18 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-07-24 12:29:12 +0200
commitb11f521c56cba07a7b8a0568ca76d48461e08a5f (patch)
tree8d870651c2f4575a02366add76f561017b6a79e0 /fpicker
parentdon't show edit/delete menu when there is no service (diff)
downloadcore-b11f521c56cba07a7b8a0568ca76d48461e08a5f.tar.gz
core-b11f521c56cba07a7b8a0568ca76d48461e08a5f.zip
handle the delete button from PlaceEditDialog
Change-Id: Idb3257d1c106821a6e86182bca79c1aff8bfaea3
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index a810ff8312cc..a263c3fc8576 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -658,6 +658,9 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton,
m_bIsUpdated = true;
break;
}
+ case RET_NO:
+ sIdent = "delete_service";
+ break;
case RET_CANCEL :
default :
// Do Nothing
@@ -665,7 +668,7 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton,
};
}
}
- else if( sIdent == "delete_service" && m_pServices_lb->GetEntryCount() > 0 )
+ if( sIdent == "delete_service" && m_pServices_lb->GetEntryCount() > 0 )
{
unsigned int nSelected = m_pServices_lb->GetSelectEntryPos();
int nPos = GetSelectedServicePos();