diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-07-11 16:58:10 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-07-11 17:04:22 +0200 |
commit | 631230c2c2b3a67a1620a233ad5b99bcde8457b2 (patch) | |
tree | 90fbc2edbb463f173855031a4bca88c5be3d07c2 /fpicker | |
parent | 0b076591e7b44b2dd86e8e42fb1efbb267379468 (diff) |
fpicker: don't edit local places with double-click
Change-Id: Ibb8330dd088f6b630058fc023ad7efdea59e08bf
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/PlacesListBox.cxx | 46 |
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( ) |