Kaydet (Commit) 1122c8b9 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

fpicker: don't edit local places with double-click

Change-Id: Ibb8330dd088f6b630058fc023ad7efdea59e08bf
üst d75061c7
......@@ -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( )
......
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