Merge remote-tracking branch 'origin/release/20.12'

This commit is contained in:
Albert Astals Cid 2020-12-06 19:13:23 +01:00
commit d9487fc764

View file

@ -762,14 +762,14 @@ QUrl DocumentPrivate::giveAbsoluteUrl(const QString &fileName) const
bool DocumentPrivate::openRelativeFile(const QString &fileName)
{
QUrl url = giveAbsoluteUrl(fileName);
if (url.isEmpty())
const QUrl newUrl = giveAbsoluteUrl(fileName);
if (newUrl.isEmpty())
return false;
qCDebug(OkularCoreDebug).nospace() << "openRelativeFile: '" << url << "'";
qCDebug(OkularCoreDebug).nospace() << "openRelativeFile: '" << newUrl << "'";
emit m_parent->openUrl(url);
return true;
emit m_parent->openUrl(newUrl);
return m_url == newUrl;
}
Generator *DocumentPrivate::loadGeneratorLibrary(const KPluginMetaData &service)