1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-30 21:48:24 +00:00

Added rest of properties to all sections in GUI

This commit is contained in:
Miodrag Milanovic
2018-07-07 12:24:13 +02:00
parent fa2ca8d9e5
commit 1a22ccdfe6
2 changed files with 122 additions and 2 deletions

View File

@@ -22,6 +22,7 @@
#include "application.h"
#include <QMessageBox>
#include <QSurfaceFormat>
#include <QTextStream>
#include <exception>
NEXTPNR_NAMESPACE_BEGIN
@@ -38,6 +39,12 @@ bool Application::notify(QObject *receiver, QEvent *event)
bool retVal = true;
try {
retVal = QApplication::notify(receiver, event);
} catch (assertion_failure ex) {
QString msg;
QTextStream out(&msg);
out << ex.filename.c_str() << " at " << ex.line << "\n";
out << ex.msg.c_str();
QMessageBox::critical(0, "Error", msg);
} catch (...) {
QMessageBox::critical(0, "Error", "Fatal error !!!");
}