From f538c6000a8c8dbdf92ba3dd2da33a065da602fe Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 29 May 2016 20:30:53 +0200 Subject: [PATCH] Changed: Define parent of QDialog --- code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp | 2 +- code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp | 2 +- code/ryzom/tools/client/ryzom_installer/src/operationdialog.h | 2 +- code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp | 2 +- code/ryzom/tools/client/ryzom_installer/src/profilesdialog.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp index 21e1af181..698c41395 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp @@ -119,7 +119,7 @@ void CMainWindow::onConfigureClicked() void CMainWindow::onProfiles() { - CProfilesDialog dialog; + CProfilesDialog dialog(this); if (dialog.exec()) { diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp index 736ed4cd0..509404f62 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp @@ -41,7 +41,7 @@ #define new DEBUG_NEW #endif -COperationDialog::COperationDialog():QDialog(), m_aborting(false) +COperationDialog::COperationDialog(QWidget *parent):QDialog(parent), m_aborting(false), m_operation(OperationNone) { setupUi(this); diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.h b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.h index f72b0a877..06a47dfbf 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.h +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.h @@ -35,7 +35,7 @@ class COperationDialog : public QDialog, public Ui::OperationDialog, public IOpe Q_OBJECT public: - COperationDialog(); + COperationDialog(QWidget *parent = NULL); virtual ~COperationDialog(); public slots: diff --git a/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp index b9c3ef29a..04937c485 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp @@ -23,7 +23,7 @@ #define new DEBUG_NEW #endif -CProfilesDialog::CProfilesDialog():QDialog(), m_currentProfileIndex(-1) +CProfilesDialog::CProfilesDialog(QWidget *parent):QDialog(parent), m_currentProfileIndex(-1) { setupUi(this); diff --git a/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.h b/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.h index 231ab554a..5116d0b7b 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.h +++ b/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.h @@ -33,7 +33,7 @@ class CProfilesDialog : public QDialog, public Ui::ProfilesDialog Q_OBJECT public: - CProfilesDialog(); + CProfilesDialog(QWidget *parent = NULL); virtual ~CProfilesDialog(); private slots: