summaryrefslogtreecommitdiffstats
path: root/application/InstanceWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-09-26 19:04:37 +0200
committerPetr Mrázek <peterix@gmail.com>2017-09-26 19:04:37 +0200
commit1a38587877a7bcfe015c885eda4a90dca8ac19f4 (patch)
tree9c3205039fc2288f4dff8da98606139046f9d7cb /application/InstanceWindow.cpp
parent719f112f64b79ae78e0b1736355adfae81f6dcc0 (diff)
downloadMultiMC-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/InstanceWindow.cpp')
-rw-r--r--application/InstanceWindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/application/InstanceWindow.cpp b/application/InstanceWindow.cpp
index 3c39491b..c6191a2a 100644
--- a/application/InstanceWindow.cpp
+++ b/application/InstanceWindow.cpp
@@ -48,6 +48,7 @@ InstanceWindow::InstanceWindow(InstancePtr instance, QWidget *parent)
{
auto provider = std::make_shared<InstancePageProvider>(m_instance);
m_container = new PageContainer(provider, "console", this);
+ m_container->setParentContainer(this);
setCentralWidget(m_container);
}
@@ -213,3 +214,13 @@ void InstanceWindow::refreshContainer()
InstanceWindow::~InstanceWindow()
{
}
+
+bool InstanceWindow::requestClose()
+{
+ if(m_container->prepareToClose())
+ {
+ close();
+ return true;
+ }
+ return false;
+}