mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 21:21:12 +00:00
Merge remote-tracking branch 'origin/release/20.12'
This commit is contained in:
commit
d9487fc764
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue