]> git.mxchange.org Git - flightgear.git/commitdiff
Fix for launcher always enabling MP
authorJames Turner <zakalawe@mac.com>
Fri, 15 Jul 2016 21:48:37 +0000 (22:48 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:47 +0000 (23:27 +0200)
src/GUI/Launcher.ui
src/GUI/QtLauncher.cxx

index 211442851759866f94d28fc0747ed0539ad462d1..8cfced30be89f5c39f4a42dc8f55bf23e41ab4be 100644 (file)
          <property name="checkable">
           <bool>true</bool>
          </property>
+         <property name="checked">
+          <bool>false</bool>
+         </property>
          <layout class="QGridLayout" name="gridLayout" columnstretch="1,2,0">
           <item row="0" column="0">
            <widget class="QLabel" name="label_9">
index fa63c190cff7f9efd0d309015aacad452bff62da..64f5b76faeddd833ec5286ac19e009c4fefd9bbe 100644 (file)
@@ -729,6 +729,7 @@ void QtLauncher::restoreSettings()
 
     m_ui->commandLineArgs->setPlainText(settings.value("additional-args").toString());
 
+    m_ui->mpBox->setChecked(settings.value("mp-enabled").toBool());
     m_ui->mpCallsign->setText(settings.value("mp-callsign").toString());
     // don't restore MP server here, we do it after a refresh
     m_doRestoreMPServer = true;
@@ -773,6 +774,7 @@ void QtLauncher::saveSettings()
 
     settings.setValue("mp-callsign", m_ui->mpCallsign->text());
     settings.setValue("mp-server", m_ui->mpServerCombo->currentData());
+    settings.setValue("mp-enabled", m_ui->mpBox->isChecked());
 }
 
 void QtLauncher::setEnableDisableOptionFromCheckbox(QCheckBox* cbox, QString name) const