diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b3d7000..75ac857 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -87,9 +87,15 @@ MainWindow::MainWindow(QWidget *parent) : layout->addWidget(tab); ui->centralWidget->setLayout(layout); this->setWindowFlags (Qt::Window); - connect(EventCenter::Default(),&EventCenter::GUIErrorRaise,[=](){ + connect(EventCenter::Default(),&EventCenter::GUIErrorRaise,[=](QObject*,QObject* msg){ if (!msgDialog) msgDialog = new GUIMessageDialog(this); - msgDialog->showMessage("Something went error!"); + if (msg) + { + QString* str = (QString*)msg; + msgDialog->showMessage(*str); + } else { + msgDialog->showMessage("Something went error!"); + } msgDialog->showExitButton(); msgDialog->stopLoading(); msgDialog->showFullScreen();