summaryrefslogtreecommitdiffstats
path: root/application/ConsoleWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-12-03 23:00:51 +0100
committerPetr Mrázek <peterix@gmail.com>2015-12-03 23:00:51 +0100
commita5b8f22eab508b606bed26923b020c8de02bfcff (patch)
tree9492aadf6459a4396bf863a0869fea0993d31a00 /application/ConsoleWindow.cpp
parentb5902b739ebd5291898a2fbbacea4327f46433bf (diff)
downloadMultiMC-a5b8f22eab508b606bed26923b020c8de02bfcff.tar
MultiMC-a5b8f22eab508b606bed26923b020c8de02bfcff.tar.gz
MultiMC-a5b8f22eab508b606bed26923b020c8de02bfcff.tar.lz
MultiMC-a5b8f22eab508b606bed26923b020c8de02bfcff.tar.xz
MultiMC-a5b8f22eab508b606bed26923b020c8de02bfcff.zip
GH-1339 do not destroy console window while screenshot upload is active
Diffstat (limited to 'application/ConsoleWindow.cpp')
-rw-r--r--application/ConsoleWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/ConsoleWindow.cpp b/application/ConsoleWindow.cpp
index 239f538e..a843536b 100644
--- a/application/ConsoleWindow.cpp
+++ b/application/ConsoleWindow.cpp
@@ -219,7 +219,7 @@ void ConsoleWindow::onSucceeded()
{
m_killButton->setEnabled(false);
setMayClose(true);
- if (m_proc->instance()->settings()->get("AutoCloseConsole").toBool())
+ if (m_proc->instance()->settings()->get("AutoCloseConsole").toBool() && m_container->requestClose(nullptr))
{
this->close();
return;