tdf#124213: handle private URLs as non-remote
Since commit 26c106a5ae
"append '(Remote)'
in the titlebar when remote file is opened", 2015-08-14, the titlebar
shows "(remote)" for documents with non-empty URLs that are not file
scheme.
When recovering a non-existing document, the URL is a factory one like
"private:factory/swriter"; and INetURLObject::GetProtocol() call returns
PrivSoffice.
Indeed, recovery of a non-existing document doesn't make sense itself,
and is fixed by Justin elsewhere; but let's fix the general logic here.
Change-Id: Ibaf095981c37a2fd64f745ad0966465d98a4ed4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171027
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
This commit is contained in:
parent
ac175a43c9
commit
9b911aaa3d
1 changed files with 1 additions and 0 deletions
|
@ -438,6 +438,7 @@ void TitleHelper::impl_updateTitleForController (const css::uno::Reference< css:
|
|||
{
|
||||
INetURLObject aURL (xModel->getURL ());
|
||||
if (aURL.GetProtocol () != INetProtocol::File
|
||||
&& aURL.GetProtocol() != INetProtocol::PrivSoffice
|
||||
&& aURL.GetProtocol () != INetProtocol::NotValid)
|
||||
{
|
||||
OUString sRemoteText (FwkResId (STR_REMOTE_TITLE));
|
||||
|
|
Loading…
Reference in a new issue