1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

GCS: Import/Export The checkboxes didn't work, fixed :)

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1690 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cranphin 2010-09-19 12:39:04 +00:00 committed by cranphin
parent 0441b8b786
commit 400f832b3c

View File

@ -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());