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

access to the first entry of services listbox

Change-Id: I1bd3fc13fd8258d27d0900b853e751af6eb9ef38
üst 0aae2a87
...@@ -549,7 +549,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, SelectServiceHdl ) ...@@ -549,7 +549,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, SelectServiceHdl )
{ {
int nPos = GetSelectedServicePos(); int nPos = GetSelectedServicePos();
if( nPos > 0 ) if( nPos >= 0 )
{ {
OUString sURL = m_aServices[nPos]->GetUrl(); OUString sURL = m_aServices[nPos]->GetUrl();
OUString sName = m_aServices[nPos]->GetName(); OUString sName = m_aServices[nPos]->GetName();
...@@ -578,7 +578,7 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton, ...@@ -578,7 +578,7 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton,
unsigned int nSelected = m_pServices_lb->GetSelectEntryPos(); unsigned int nSelected = m_pServices_lb->GetSelectEntryPos();
int nPos = GetSelectedServicePos(); int nPos = GetSelectedServicePos();
if( nPos > 0 ) if( nPos >= 0 )
{ {
ScopedVclPtrInstance< PlaceEditDialog > aDlg( this, m_aServices[nPos] ); ScopedVclPtrInstance< PlaceEditDialog > aDlg( this, m_aServices[nPos] );
short aRetCode = aDlg->Execute(); short aRetCode = aDlg->Execute();
...@@ -609,7 +609,7 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton, ...@@ -609,7 +609,7 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton,
unsigned int nSelected = m_pServices_lb->GetSelectEntryPos(); unsigned int nSelected = m_pServices_lb->GetSelectEntryPos();
int nPos = GetSelectedServicePos(); int nPos = GetSelectedServicePos();
if( nPos > 0 ) if( nPos >= 0 )
{ {
// TODO: Confirm dialog // TODO: Confirm dialog
......
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