Fix a messagebox bug
This commit is contained in:
@@ -89,11 +89,11 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||
ui->centralWidget->setLayout(layout);
|
||||
this->setWindowFlags(Qt::Window);
|
||||
connect(EventCenter::Default(), &EventCenter::GUIErrorRaise, [=](QObject*, QObject* msg) {
|
||||
if (msgDialog){
|
||||
msgDialog->hide();
|
||||
delete msgDialog;
|
||||
}
|
||||
msgDialog = new GUIMessageDialog(this);
|
||||
|
||||
if (!msgDialog){
|
||||
msgDialog = new GUIMessageDialog;
|
||||
msgDialog->setStyleSheet(style);
|
||||
}
|
||||
if (msg)
|
||||
{
|
||||
QString* str = (QString*)msg;
|
||||
|
||||
Reference in New Issue
Block a user