Reset config should also delete xmlui config file

parent b365d6c7
......@@ -262,7 +262,6 @@ int main(int argc, char *argv[])
pCore->initGUI(url, clipsToLoad);
int result = app.exec();
Core::clean();
if (result == EXIT_RESTART || result == EXIT_CLEAN_RESTART) {
qCDebug(KDENLIVE_LOG) << "restarting app";
if (result == EXIT_CLEAN_RESTART) {
......@@ -276,6 +275,18 @@ int main(int argc, char *argv[])
f.remove();
}
}
// Delete xml ui rc file
QDir dir(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kxmlgui5"), QStandardPaths::LocateDirectory));
if (dir.exists()) {
dir.cd(QStringLiteral("kdenlive"));
}
if (dir.exists()) {
QFile f(dir.absoluteFilePath(QStringLiteral("kdenliveui.rc")));
if (f.exists()) {
qDebug()<<" = = = =\nGOT Deleted file: "<<f.fileName();
f.remove();
}
}
}
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList progArgs = QString(*argv).split(QLatin1Char(' '), QString::SkipEmptyParts);
......
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