From 8ac5399c1dab53666928d536f4f2d2220e1c3075 Mon Sep 17 00:00:00 2001 From: elafargue Date: Tue, 7 Jun 2011 13:54:38 +0200 Subject: [PATCH] OP-527 Implemented as requested: will load the default settings if no settings found, without asking. --- .../src/plugins/coreplugin/mainwindow.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/coreplugin/mainwindow.cpp b/ground/openpilotgcs/src/plugins/coreplugin/mainwindow.cpp index 5926e6c98..25170092e 100644 --- a/ground/openpilotgcs/src/plugins/coreplugin/mainwindow.cpp +++ b/ground/openpilotgcs/src/plugins/coreplugin/mainwindow.cpp @@ -290,13 +290,11 @@ void MainWindow::extensionsInitialized() if ( ! qs->allKeys().count() ){ QMessageBox msgBox; msgBox.setText(tr("No configuration file could be found.")); - msgBox.setInformativeText(tr("Do you want to load the default configuration?")); - msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); - msgBox.setDefaultButton(QMessageBox::Yes); - if ( msgBox.exec() == QMessageBox::Yes ){ - qDebug() << "Load default config from resource /core/OpenPilotGCS.xml"; - qs = &defaultSettings; - } + msgBox.setInformativeText(tr("The default configuration will be loaded.")); + msgBox.setStandardButtons(QMessageBox::Ok); + msgBox.exec(); + qDebug() << "Load default config from resource /core/OpenPilotGCS.xml"; + qs = &defaultSettings; } m_uavGadgetInstanceManager = new UAVGadgetInstanceManager(this);