Kaydet (Commit) 37e18491 authored tarafından Szymon Kłos's avatar Szymon Kłos

Show 'Add service' dialog when there is no service added yet

Change-Id: I72d294e9c09b0d02b829b91fb188c1c7965d1d45
üst 8cc2115c
...@@ -318,6 +318,19 @@ void RemoteFilesDialog::Resize() ...@@ -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 ) OUString lcl_GetServiceType( ServicePtr pService )
{ {
INetProtocol aProtocol = pService->GetUrlObject().GetProtocol(); INetProtocol aProtocol = pService->GetUrlObject().GetProtocol();
......
...@@ -64,6 +64,7 @@ public: ...@@ -64,6 +64,7 @@ public:
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
virtual void Resize() SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE;
virtual short Execute() SAL_OVERRIDE;
OUString GetPath() const; OUString GetPath() const;
......
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