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:
@@ -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 !!!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user