Restore attaching qml debugger
This commit is contained in:
parent
0bf60ad1b4
commit
6b02b02dcc
@ -39,6 +39,8 @@ void noMessageOutput(QtMsgType type, const char *msg)
|
||||
}
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
QQmlDebuggingEnabler debugEnabler;
|
||||
|
||||
QApplication app(argc, argv);
|
||||
app.setApplicationName("plasma_shell");
|
||||
app.setOrganizationDomain("kde.org");
|
||||
@ -71,12 +73,6 @@ int main(int argc, char** argv)
|
||||
|
||||
parser.process(app);
|
||||
|
||||
//enable the QML debugger only if --qmljsdebugger (or -d) is passed as a command line arg
|
||||
//this must be called before the QApplication constructor
|
||||
if (parser.isSet(dbg)) {
|
||||
QQmlDebuggingEnabler enabler;
|
||||
}
|
||||
|
||||
if (parser.isSet(shutup)) {
|
||||
qInstallMsgHandler(noMessageOutput);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user