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