Kaydet (Commit) c7079800 authored tarafından Szymon Kłos's avatar Szymon Kłos

RemoteFilesDialog: safe doubleclick on file view

Change-Id: I651c8274dfb2776e63c32f0b45d9daf57e5970c6
üst 31664660
......@@ -687,17 +687,24 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton,
IMPL_LINK_NOARG ( RemoteFilesDialog, DoubleClickHdl )
{
SvTreeListEntry* pEntry = m_pFileView->FirstSelected();
SvtContentEntry* pData = static_cast< SvtContentEntry* >( pEntry->GetUserData() );
if( pData->mbIsFolder )
if( pEntry )
{
OUString sURL = m_pFileView->GetCurrentURL();
SvtContentEntry* pData = static_cast< SvtContentEntry* >( pEntry->GetUserData() );
OpenURL( sURL );
}
else
{
EndDialog( RET_OK );
if( pData )
{
if( pData->mbIsFolder )
{
OUString sURL = m_pFileView->GetCurrentURL();
OpenURL( sURL );
}
else
{
EndDialog( RET_OK );
}
}
}
return 1;
......
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