Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
8222199e
Commit
8222199e
authored
Dec 31, 2020
by
Jean-Baptiste Mardelle
Browse files
Reset config should also delete xmlui config file
parent
68c3d6b7
Pipeline
#45862
passed with stage
in 10 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
8222199e
...
...
@@ -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
()
<<
" = = = =
\n
GOT Deleted file: "
<<
f
.
fileName
();
f
.
remove
();
}
}
}
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList
progArgs
=
QString
(
*
argv
).
split
(
QLatin1Char
(
' '
),
QString
::
SkipEmptyParts
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment