Skip to content
Snippets Groups Projects
Commit 54d3498f authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

set title of fatal error message box

parent ece82cf9
No related branches found
No related tags found
1 merge request!1352popup message box upon failed ASSERT (#186)
......@@ -38,11 +38,14 @@ void messageHandler(QtMsgType type, const QMessageLogContext&, const QString& ms
case QtFatalMsg:
std::cerr << "FATAL: " << msg.toStdString() << std::endl;
qApp->restoreOverrideCursor();
QMessageBox::critical(QApplication::activeWindow(), qAppName(),
"Sorry, you encountered a fatal bug.\n"
"The application will terminate.\n"
"Please note the following and inform the maintainers.\n\n"
+ msg + "\n");
QMessageBox msgbox(QMessageBox::Critical, "BornAgain: fatal bug",
"Sorry, you encountered a fatal bug.\n"
"The application will terminate.\n"
"Please note the following and inform the maintainers.\n\n"
+ msg + "\n",
QMessageBox::Ok,
QApplication::activeWindow());
msgbox.exec();
qApp->quit();
exit(1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment