Fix application can't exit bug

This commit is contained in:
Krad
2021-11-11 14:09:35 +08:00
parent 08e82c008c
commit dcd424c0af

View File

@@ -52,13 +52,15 @@ int main(int argc, char* argv[])
SQLHelper::Open();
MainWindow w;
w.showFullScreen();
LoginWindow l;
needLogin:
l.showFullScreen();
int rec = l.exec();
if (rec !=QDialog::Accepted )
{
return 0;
LoginWindow l;
needLogin:
l.showFullScreen();
int rec = l.exec();
if (rec != QDialog::Accepted) {
return 0;
}
}
// l.deleteLater();
w.centerWidgetShow();