diff options
Diffstat (limited to 'gui/widgets/PageContainer.cpp')
-rw-r--r-- | gui/widgets/PageContainer.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gui/widgets/PageContainer.cpp b/gui/widgets/PageContainer.cpp index d5df72ce..a68f94cd 100644 --- a/gui/widgets/PageContainer.cpp +++ b/gui/widgets/PageContainer.cpp @@ -14,12 +14,11 @@ */ #include "PageContainer.h" -#include "gui/Platform.h" + #include <QStackedLayout> #include <QPushButton> #include <QSortFilterProxyModel> #include <QUrl> -#include "MultiMC.h" #include <QStyledItemDelegate> #include <QListView> #include <QLineEdit> @@ -27,10 +26,12 @@ #include <QDialogButtonBox> #include <QGridLayout> #include <QDesktopServices> -#include "logic/settings/SettingsObject.h" +#include "MultiMC.h" +#include "logic/settings/SettingsObject.h" +#include "gui/widgets/IconLabel.h" +#include "gui/Platform.h" #include "PageContainer_p.h" -#include <gui/widgets/IconLabel.h> class PageEntryFilterModel : public QSortFilterProxyModel { @@ -197,5 +198,9 @@ bool PageContainer::requestClose(QCloseEvent *event) if (!page->apply()) return false; } + if (m_currentPage) + { + m_currentPage->closed(); + } return true; } |