Skip to content
GitLab
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
27c64c00
Commit
27c64c00
authored
Oct 29, 2018
by
Vincent Pinon
Browse files
Try catching application initialization crashes
parent
579812c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
27c64c00
...
...
@@ -49,6 +49,9 @@
int
main
(
int
argc
,
char
*
argv
[])
{
#ifdef USE_DRMINGW
ExcHndlInit
();
#endif
// Force QDomDocument to use a deterministic XML attribute order
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
qSetGlobalQHashSeed
(
0
);
...
...
@@ -66,6 +69,10 @@ int main(int argc, char *argv[])
QCoreApplication
::
setAttribute
(
Qt
::
AA_X11InitThreads
);
#endif
#ifdef KF5_USE_CRASH
KCrash
::
initialize
();
#endif
#ifdef Q_OS_WIN
qputenv
(
"KDE_FORK_SLAVES"
,
"1"
);
#endif
...
...
@@ -151,12 +158,6 @@ int main(int argc, char *argv[])
parser
.
process
(
app
);
aboutData
.
processCommandLine
(
&
parser
);
#ifdef USE_DRMINGW
ExcHndlInit
();
#elif defined(KF5_USE_CRASH)
KCrash
::
initialize
();
#endif
QString
clipsToLoad
=
parser
.
value
(
QStringLiteral
(
"i"
));
QString
mltPath
=
parser
.
value
(
QStringLiteral
(
"mlt-path"
));
if
(
parser
.
value
(
QStringLiteral
(
"mlt-log"
))
==
QStringLiteral
(
"verbose"
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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