diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-07-01 23:06:42 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-16 09:53:22 +0200 |
commit | 51b316c80fe2ec7b4f01b56714358541ac1205fd (patch) | |
tree | fd9227e32b01d4a357f1348c89641a99473e0226 | |
parent | 0aae2a8702e1a68b79bd25d4d6e4b08b1eb1b69f (diff) |
access to the first entry of services listbox
Change-Id: I1bd3fc13fd8258d27d0900b853e751af6eb9ef38
-rw-r--r-- | svtools/source/dialogs/RemoteFilesDialog.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/dialogs/RemoteFilesDialog.cxx b/svtools/source/dialogs/RemoteFilesDialog.cxx index 459434317ffd..f4821eefd7a5 100644 --- a/svtools/source/dialogs/RemoteFilesDialog.cxx +++ b/svtools/source/dialogs/RemoteFilesDialog.cxx @@ -549,7 +549,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, SelectServiceHdl ) { int nPos = GetSelectedServicePos(); - if( nPos > 0 ) + if( nPos >= 0 ) { OUString sURL = m_aServices[nPos]->GetUrl(); OUString sName = m_aServices[nPos]->GetName(); @@ -578,7 +578,7 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton, unsigned int nSelected = m_pServices_lb->GetSelectEntryPos(); int nPos = GetSelectedServicePos(); - if( nPos > 0 ) + if( nPos >= 0 ) { ScopedVclPtrInstance< PlaceEditDialog > aDlg( this, m_aServices[nPos] ); short aRetCode = aDlg->Execute(); @@ -609,7 +609,7 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton, unsigned int nSelected = m_pServices_lb->GetSelectEntryPos(); int nPos = GetSelectedServicePos(); - if( nPos > 0 ) + if( nPos >= 0 ) { // TODO: Confirm dialog |