summaryrefslogtreecommitdiff
path: root/fpicker/source/office
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-07-11 16:58:10 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-07-11 17:03:12 +0200
commit1122c8b9e3b133e1aba5abfd07aa40f816ac9a0d (patch)
tree06eedae294a81190ac9427ae5c6d2fc69d441e08 /fpicker/source/office
parentd75061c7f676c011bb9710f0ad63fc69f4866c53 (diff)
fpicker: don't edit local places with double-click
Change-Id: Ibb8330dd088f6b630058fc023ad7efdea59e08bf
Diffstat (limited to 'fpicker/source/office')
-rw-r--r--fpicker/source/office/PlacesListBox.cxx46
1 files changed, 23 insertions, 23 deletions
diff --git a/fpicker/source/office/PlacesListBox.cxx b/fpicker/source/office/PlacesListBox.cxx
index f8e438d65d67..e16753edb922 100644
--- a/fpicker/source/office/PlacesListBox.cxx
+++ b/fpicker/source/office/PlacesListBox.cxx
@@ -168,30 +168,30 @@ IMPL_LINK( PlacesListBox, Selection, void* , EMPTYARG )
IMPL_LINK ( PlacesListBox, DoubleClick, void*, EMPTYARG )
{
- sal_uInt16 nSelected = mpImpl->GetCurrRow();
- PlacePtr pPlace = maPlaces[nSelected];
- if ( pPlace->IsEditable() == true )
- {
- PlaceEditDialog aDlg( mpDlg, pPlace );
- short aRetCode = aDlg.Execute();
- switch(aRetCode) {
- case RET_OK :
- {
- pPlace->SetName ( aDlg.GetServerName() );
- pPlace->SetUrl( aDlg.GetServerUrl() );
+ sal_uInt16 nSelected = mpImpl->GetCurrRow();
+ PlacePtr pPlace = maPlaces[nSelected];
+ if ( pPlace->IsEditable() == true && !pPlace->IsLocal( ) )
+ {
+ PlaceEditDialog aDlg( mpDlg, pPlace );
+ short aRetCode = aDlg.Execute();
+ switch(aRetCode) {
+ case RET_OK :
+ {
+ pPlace->SetName ( aDlg.GetServerName() );
+ pPlace->SetUrl( aDlg.GetServerUrl() );
mbUpdated = true;
- break;
- }
- case RET_NO :
- {
- RemovePlace(nSelected);
- break;
- }
- default:
- break;
- };
- }
- return 0;
+ break;
+ }
+ case RET_NO :
+ {
+ RemovePlace(nSelected);
+ break;
+ }
+ default:
+ break;
+ };
+ }
+ return 0;
}
void PlacesListBox::updateView( )