From 400f832b3c8d66fb2983a2280836418d7b278813 Mon Sep 17 00:00:00 2001 From: cranphin Date: Sun, 19 Sep 2010 12:39:04 +0000 Subject: [PATCH] GCS: Import/Export The checkboxes didn't work, fixed :) git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1690 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../plugins/importexport/importexportgadgetwidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ground/src/plugins/importexport/importexportgadgetwidget.cpp b/ground/src/plugins/importexport/importexportgadgetwidget.cpp index a7542c428..175266721 100644 --- a/ground/src/plugins/importexport/importexportgadgetwidget.cpp +++ b/ground/src/plugins/importexport/importexportgadgetwidget.cpp @@ -94,10 +94,10 @@ void ImportExportGadgetWidget::on_exportButton_clicked() void ImportExportGadgetWidget::exportConfiguration(const QString& fileName) { - bool general = ui->checkBoxGeneral; - bool allGadgets = ui->checkBoxAllGadgets; + bool general = ui->checkBoxGeneral->isChecked(); + bool allGadgets = ui->checkBoxAllGadgets->isChecked(); - QSettings qs(fileName, QSettings::defaultFormat()); + QSettings qs(fileName, QSettings::IniFormat); if (general) { Core::ICore::instance()->saveMainSettings(&qs); @@ -135,8 +135,8 @@ void ImportExportGadgetWidget::on_importButton_clicked() void ImportExportGadgetWidget::importConfiguration(const QString& fileName) { - bool general = ui->checkBoxGeneral; - bool allGadgets = ui->checkBoxAllGadgets; + bool general = ui->checkBoxGeneral->isChecked(); + bool allGadgets = ui->checkBoxAllGadgets->isChecked(); QSettings qs(fileName, QSettings::defaultFormat());