mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Add missing settings.endGroup() when needed
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
1ff47964e3
commit
f82e3b55e3
@ -189,6 +189,7 @@ PluginSpec Plugins::createSpec(const QJsonObject &metaData)
|
|||||||
settings.setValue(it.key(), it.value().toString());
|
settings.setValue(it.key(), it.value().toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
settings.endGroup();
|
||||||
settings.sync();
|
settings.sync();
|
||||||
return createSpec(DesktopFile(tempMetadata));
|
return createSpec(DesktopFile(tempMetadata));
|
||||||
}
|
}
|
||||||
|
@ -150,6 +150,7 @@ void GM_Downloader::requireDownloaded()
|
|||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
settings.setValue(m_reply->request().url().toString(), QFileInfo(m_fileName).fileName());
|
settings.setValue(m_reply->request().url().toString(), QFileInfo(m_fileName).fileName());
|
||||||
|
settings.endGroup();
|
||||||
|
|
||||||
Q_EMIT finished(m_fileName);
|
Q_EMIT finished(m_fileName);
|
||||||
}
|
}
|
||||||
|
@ -119,6 +119,7 @@ QString GM_Manager::requireScripts(const QStringList &urlList) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
settings.endGroup();
|
||||||
|
|
||||||
return script;
|
return script;
|
||||||
}
|
}
|
||||||
@ -276,6 +277,7 @@ void GM_Manager::load()
|
|||||||
QSettings settings(m_settingsPath + QL1S("/extensions.ini"), QSettings::IniFormat);
|
QSettings settings(m_settingsPath + QL1S("/extensions.ini"), QSettings::IniFormat);
|
||||||
settings.beginGroup(QSL("GreaseMonkey"));
|
settings.beginGroup(QSL("GreaseMonkey"));
|
||||||
m_disabledScripts = settings.value(QSL("disabledScripts"), QStringList()).toStringList();
|
m_disabledScripts = settings.value(QSL("disabledScripts"), QStringList()).toStringList();
|
||||||
|
settings.endGroup();
|
||||||
|
|
||||||
const auto fileNames = gmDir.entryList(QStringList(QSL("*.js")), QDir::Files);
|
const auto fileNames = gmDir.entryList(QStringList(QSL("*.js")), QDir::Files);
|
||||||
for (const QString &fileName : fileNames) {
|
for (const QString &fileName : fileNames) {
|
||||||
|
Loading…
Reference in New Issue
Block a user