GUI: Make mainwindow parent of Settings-dialog.
This commit is contained in:
parent
3e0f1a5e56
commit
13eb74173c
|
@ -291,7 +291,7 @@ void MainWindow::CheckDone()
|
|||
|
||||
void MainWindow::ProgramSettings()
|
||||
{
|
||||
SettingsDialog dialog(mSettings, mApplications);
|
||||
SettingsDialog dialog(mSettings, mApplications, this);
|
||||
if (dialog.exec() == QDialog::Accepted)
|
||||
{
|
||||
dialog.SaveCheckboxValues();
|
||||
|
|
|
@ -18,12 +18,16 @@
|
|||
|
||||
|
||||
#include "settingsdialog.h"
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
#include <QLabel>
|
||||
#include <QDebug>
|
||||
#include <QTabWidget>
|
||||
#include "applicationdialog.h"
|
||||
|
||||
SettingsDialog::SettingsDialog(QSettings &programSettings, ApplicationList &list) :
|
||||
SettingsDialog::SettingsDialog(QSettings &programSettings, ApplicationList &list,
|
||||
QWidget *parent) :
|
||||
QDialog(parent),
|
||||
mSettings(programSettings),
|
||||
mApplications(list)
|
||||
{
|
||||
|
|
|
@ -41,7 +41,7 @@ class SettingsDialog : public QDialog
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SettingsDialog(QSettings &programSettings, ApplicationList &list);
|
||||
SettingsDialog(QSettings &programSettings, ApplicationList &list, QWidget *parent = 0);
|
||||
virtual ~SettingsDialog();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue