]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/QtLauncher.cxx
Fix launcher failure when MP is enabled.
[flightgear.git] / src / GUI / QtLauncher.cxx
index e56db78c7ad7372867756ca4c039337f1e717edf..16307ecf9a576e59fc11751d6b240ba9501eb783 100644 (file)
@@ -886,7 +886,11 @@ void QtLauncher::onRun()
     }
 
     if (m_ui->mpBox->isChecked()) {
-        opt->addOption("callsign", m_ui->mpCallsign->text().toStdString());
+        std::string callSign = m_ui->mpCallsign->text().toStdString();
+        if (!callSign.empty()) {
+            opt->addOption("callsign", callSign);
+        }
+
         QString host = m_ui->mpServerCombo->currentData().toString();
         int port = 5000;
         if (host == "custom") {