GUI: auto-save default settings
This commit is contained in:
parent
d4b6dd670c
commit
a4d3470897
|
|
@ -130,6 +130,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
|||
connect(Bridge::getBridge(), SIGNAL(updateWindowTitle(QString)), this, SLOT(updateWindowTitleSlot(QString)));
|
||||
connect(Bridge::getBridge(), SIGNAL(addRecentFile(QString)), this, SLOT(addRecentFile(QString)));
|
||||
|
||||
//Set default setttings (when not set)
|
||||
SettingsDialog defaultSettings;
|
||||
defaultSettings.SaveSettings();
|
||||
|
||||
const char* errormsg=DbgInit();
|
||||
if(errormsg)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ class SettingsDialog : public QDialog
|
|||
public:
|
||||
explicit SettingsDialog(QWidget *parent = 0);
|
||||
~SettingsDialog();
|
||||
void SaveSettings();
|
||||
|
||||
private slots:
|
||||
void on_chkSystemBreakpoint_stateChanged(int arg1);
|
||||
|
|
@ -77,7 +78,6 @@ private:
|
|||
void GetSettingBool(const char* section, const char* name, bool* set);
|
||||
Qt::CheckState bool2check(bool checked);
|
||||
void LoadSettings();
|
||||
void SaveSettings();
|
||||
};
|
||||
|
||||
#endif // SETTINGSDIALOG_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue