Commit da06e83c authored by Kai Koehne's avatar Kai Koehne
Browse files

Debugger: Prevent message boxes for every output to stderr

The use of QErrorMessage::qtHandle() installs a message handler
that from then on pops up a warning for each qWarning().

Change-Id: Iad6ac7b002ffc007de7df7a41c3ce0f9ee40e6d0
Reviewed-on: http://codereview.qt.nokia.com/2280

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent bc3b6ee0
......@@ -258,7 +258,10 @@ void DebuggerRunControl::start()
"languages currently active, and will be ignored.");
debuggerCore()->showMessage(warningMessage, LogWarning);
QErrorMessage::qtHandler()->showMessage(warningMessage);
QErrorMessage *msgBox = new QErrorMessage(debuggerCore()->mainWindow());
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->showMessage(warningMessage);
}
}
......
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