]> git.mxchange.org Git - flightgear.git/commitdiff
Fix launcher failure when MP is enabled.
authorJames Turner <zakalawe@mac.com>
Wed, 31 Aug 2016 22:07:21 +0000 (23:07 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:49 +0000 (23:27 +0200)
Only set â€”callsign argument if the user entered one.

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") {