diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-06-25 12:48:27 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-16 09:53:12 +0200 |
commit | ce1bf99e08a2ba0aad6ccbf3d64c4d8b626530c8 (patch) | |
tree | 8a39eafd853723a4411fe33c0aa07917c1bc8d5e /svtools | |
parent | 0d9ce24f6ca57b19ac224daeb8a15123f026f694 (diff) |
RemoteFilesDialog: opening files using double click
Change-Id: Ieea2d757525679b9686629f2d8e75e71cccbf2e0
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/RemoteFilesDialog.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/svtools/source/dialogs/RemoteFilesDialog.cxx b/svtools/source/dialogs/RemoteFilesDialog.cxx index 405548e692b4..c89f73fcd7a2 100644 --- a/svtools/source/dialogs/RemoteFilesDialog.cxx +++ b/svtools/source/dialogs/RemoteFilesDialog.cxx @@ -641,9 +641,19 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton, IMPL_LINK_NOARG ( RemoteFilesDialog, DoubleClickHdl ) { - OUString sURL = m_pFileView->GetCurrentURL(); + SvTreeListEntry* pEntry = m_pFileView->FirstSelected(); + SvtContentEntry* pData = static_cast< SvtContentEntry* >( pEntry->GetUserData() ); + + if( pData->mbIsFolder ) + { + OUString sURL = m_pFileView->GetCurrentURL(); - OpenURL( sURL ); + OpenURL( sURL ); + } + else + { + EndDialog( RET_OK ); + } return 1; } |