diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-07-13 16:32:07 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-16 09:53:54 +0200 |
commit | 871d770378809d49c49369faf7fd2ebfe9dc3881 (patch) | |
tree | ce79c0a1da8dc303a2b6634f699939fae7c2bc52 /svtools | |
parent | 289eb8a70d8be87e9768f48d3d28cf4f0d47709a (diff) |
Separators between services types
Change-Id: Ibd26abdb83b86256197311bc7a120b4b025ae814
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/PlaceEditDialog.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx index 0d1dced12351..482b763ba99f 100644 --- a/svtools/source/dialogs/PlaceEditDialog.cxx +++ b/svtools/source/dialogs/PlaceEditDialog.cxx @@ -20,6 +20,7 @@ using namespace com::sun::star::uno; PlaceEditDialog::PlaceEditDialog(vcl::Window* pParent) : ModalDialog(pParent, "PlaceEditDialog", "svt/ui/placeedit.ui") , m_xCurrentDetails() + , m_nCurrentType( 0 ) { get( m_pEDServerName, "name" ); get( m_pLBServerType, "type" ); @@ -249,11 +250,22 @@ IMPL_LINK_NOARG( PlaceEditDialog, EditUsernameHdl ) IMPL_LINK_NOARG( PlaceEditDialog, SelectTypeHdl ) { + if ( m_pLBServerType->GetSelectEntry() == "--------------------" ) + { + if( !m_pLBServerType->IsTravelSelect() ) + m_pLBServerType->SelectEntryPos( m_nCurrentType ); + else + m_pLBServerType->SetNoSelection(); + + return 0; + } + if (m_xCurrentDetails.get()) m_xCurrentDetails->show(false); sal_uInt16 nPos = m_pLBServerType->GetSelectEntryPos( ); m_xCurrentDetails = m_aDetailsContainers[nPos]; + m_nCurrentType = nPos; m_xCurrentDetails->show(true); |