diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-26 19:04:37 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-26 19:04:37 +0200 |
commit | 1a38587877a7bcfe015c885eda4a90dca8ac19f4 (patch) | |
tree | 9c3205039fc2288f4dff8da98606139046f9d7cb /application/widgets | |
parent | 719f112f64b79ae78e0b1736355adfae81f6dcc0 (diff) | |
download | MultiMC-1a38587877a7bcfe015c885eda4a90dca8ac19f4.tar MultiMC-1a38587877a7bcfe015c885eda4a90dca8ac19f4.tar.gz MultiMC-1a38587877a7bcfe015c885eda4a90dca8ac19f4.tar.lz MultiMC-1a38587877a7bcfe015c885eda4a90dca8ac19f4.tar.xz MultiMC-1a38587877a7bcfe015c885eda4a90dca8ac19f4.zip |
NOISSUE Legacy migration success now closes the instance window
Diffstat (limited to 'application/widgets')
-rw-r--r-- | application/widgets/PageContainer.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/application/widgets/PageContainer.h b/application/widgets/PageContainer.h index c3d77486..e0a59f6b 100644 --- a/application/widgets/PageContainer.h +++ b/application/widgets/PageContainer.h @@ -47,9 +47,23 @@ public: */ bool prepareToClose(); + /* request close - used by individual pages */ + bool requestClose() override + { + if(m_container) + { + return m_container->requestClose(); + } + return false; + } + virtual bool selectPage(QString pageId) override; void refreshContainer() override; + virtual void setParentContainer(BasePageContainer * container) + { + m_container = container; + }; private: void createUI(); @@ -60,6 +74,7 @@ slots: void help(); private: + BasePageContainer * m_container = nullptr; BasePage * m_currentPage = 0; QSortFilterProxyModel *m_proxyModel; PageModel *m_model; |