[Libreoffice-commits] core.git: Branch 'feature/gsoc15-open-remote-files-dialog' - fpicker/source

Szymon Kłos eszkadev at gmail.com
Tue Jul 14 07:17:48 PDT 2015


 fpicker/source/office/RemoteFilesDialog.cxx |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit cae7cef9584c76612093403dbf6e6c90c37c4039
Author: Szymon Kłos <eszkadev at gmail.com>
Date:   Tue Jul 14 16:16:06 2015 +0200

    FilePickerLastService as a string, not string-list 2
    
    Change-Id: If100617ef968fde94178528327135e15f64c1542

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index 5ea0658..6c200ae 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -227,10 +227,7 @@ void RemoteFilesDialog::dispose()
 
     std::shared_ptr< comphelper::ConfigurationChanges > batch( comphelper::ConfigurationChanges::create( m_context ) );
 
-    Sequence< OUString > lastService( 1 );
-    lastService[0] = m_sLastServiceUrl;
-
-    officecfg::Office::Common::Misc::FilePickerLastService::set( lastService, batch );
+    officecfg::Office::Common::Misc::FilePickerLastService::set( m_sLastServiceUrl, batch );
 
     if( m_bIsUpdated )
     {
@@ -324,10 +321,8 @@ void RemoteFilesDialog::FillServicesListbox()
 
     unsigned int nPos = 0;
     unsigned int i = 0;
-    Sequence< OUString > lastService( officecfg::Office::Common::Misc::FilePickerLastService::get( m_context ) );
 
-    if( lastService.getLength() > 0 )
-        m_sLastServiceUrl = lastService[0];
+    m_sLastServiceUrl = officecfg::Office::Common::Misc::FilePickerLastService::get( m_context );
 
     for( sal_Int32 nPlace = 0; nPlace < placesUrlsList.getLength() && nPlace < placesNamesList.getLength(); ++nPlace )
     {


More information about the Libreoffice-commits mailing list