diff --git a/App/MessageHandler.cpp b/App/MessageHandler.cpp index 880a988d8411dd0445fd9ad723e5206acaed9959..229f3bfbc9d8934a7d0e7b265e73aaac3cedc6ee 100644 --- a/App/MessageHandler.cpp +++ b/App/MessageHandler.cpp @@ -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); }