diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-07-20 11:30:49 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-24 12:28:48 +0200 |
commit | 37e184911ef6cd19f9b7ede0407f9a60a3932b44 (patch) | |
tree | c7d348e626f5227d6bdb590974ecf0086db6a6ab /fpicker | |
parent | 8cc2115c8cadf938166bb94038da6c1bc61f0fc5 (diff) |
Show 'Add service' dialog when there is no service added yet
Change-Id: I72d294e9c09b0d02b829b91fb188c1c7965d1d45
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.cxx | 13 | ||||
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.hxx | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index bb2587d1acc4..28200bb4c2cd 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -318,6 +318,19 @@ void RemoteFilesDialog::Resize() } } +short RemoteFilesDialog::Execute() +{ + if( m_pServices_lb->GetEntryCount() == 0 ) + { + Show(); + AddServiceHdl( NULL ); + } + + short nRet = SvtFileDialog_Base::Execute(); + + return nRet; +} + OUString lcl_GetServiceType( ServicePtr pService ) { INetProtocol aProtocol = pService->GetUrlObject().GetProtocol(); diff --git a/fpicker/source/office/RemoteFilesDialog.hxx b/fpicker/source/office/RemoteFilesDialog.hxx index ba48b8e1fe70..ede30c7a4711 100644 --- a/fpicker/source/office/RemoteFilesDialog.hxx +++ b/fpicker/source/office/RemoteFilesDialog.hxx @@ -64,6 +64,7 @@ public: virtual void dispose() SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; + virtual short Execute() SAL_OVERRIDE; OUString GetPath() const; |