Browse Source

Update NewPilotDialog

Change `.show` to `.exec` in Message Box
Felix Turowsky 4 years ago
parent
commit
73fd1468c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/gui/dialogues/newpilotdialog.cpp

+ 1 - 1
src/gui/dialogues/newpilotdialog.cpp

@@ -120,7 +120,7 @@ void NewPilotDialog::on_buttonBox_accepted()
     if (ui->lastnameLineEdit->text().isEmpty() || ui->firstnameLineEdit->text().isEmpty()) {
     if (ui->lastnameLineEdit->text().isEmpty() || ui->firstnameLineEdit->text().isEmpty()) {
         QMessageBox message_box(this);
         QMessageBox message_box(this);
         message_box.setText(tr("Last Name and First Name are required."));
         message_box.setText(tr("Last Name and First Name are required."));
-        message_box.show();
+        message_box.exec();
     } else {
     } else {
         submitForm();
         submitForm();
     }
     }