Browse Source

Changed dialog box

QGC4.4
lm 15 years ago
parent
commit
e6e41dfc9d
  1. 4
      src/Core.cc

4
src/Core.cc

@ -119,8 +119,8 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv) @@ -119,8 +119,8 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv)
msgBox.setIcon(QMessageBox::Critical);
msgBox.setText("Could not connect UDP port. Is an instance of " + qAppName() + "already running?");
msgBox.setInformativeText("You will not be able to receive data via UDP. Please check that you're running the right executable and then re-start " + qAppName() + ". Do you want to close the application?");
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
msgBox.setDefaultButton(QMessageBox::Cancel);
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::No);
int ret = msgBox.exec();
// Close the message box shortly after the click to prevent accidental clicks

Loading…
Cancel
Save