mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-03 11:24:10 +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:
parent
0441b8b786
commit
400f832b3c
@ -94,10 +94,10 @@ void ImportExportGadgetWidget::on_exportButton_clicked()
|
|||||||
|
|
||||||
void ImportExportGadgetWidget::exportConfiguration(const QString& fileName)
|
void ImportExportGadgetWidget::exportConfiguration(const QString& fileName)
|
||||||
{
|
{
|
||||||
bool general = ui->checkBoxGeneral;
|
bool general = ui->checkBoxGeneral->isChecked();
|
||||||
bool allGadgets = ui->checkBoxAllGadgets;
|
bool allGadgets = ui->checkBoxAllGadgets->isChecked();
|
||||||
|
|
||||||
QSettings qs(fileName, QSettings::defaultFormat());
|
QSettings qs(fileName, QSettings::IniFormat);
|
||||||
|
|
||||||
if (general) {
|
if (general) {
|
||||||
Core::ICore::instance()->saveMainSettings(&qs);
|
Core::ICore::instance()->saveMainSettings(&qs);
|
||||||
@ -135,8 +135,8 @@ void ImportExportGadgetWidget::on_importButton_clicked()
|
|||||||
|
|
||||||
void ImportExportGadgetWidget::importConfiguration(const QString& fileName)
|
void ImportExportGadgetWidget::importConfiguration(const QString& fileName)
|
||||||
{
|
{
|
||||||
bool general = ui->checkBoxGeneral;
|
bool general = ui->checkBoxGeneral->isChecked();
|
||||||
bool allGadgets = ui->checkBoxAllGadgets;
|
bool allGadgets = ui->checkBoxAllGadgets->isChecked();
|
||||||
|
|
||||||
QSettings qs(fileName, QSettings::defaultFormat());
|
QSettings qs(fileName, QSettings::defaultFormat());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user