GH-1339 do not destroy console window while screenshot upload is active

This commit is contained in:
Petr Mrázek 2015-12-03 23:00:51 +01:00
parent b5902b739e
commit a5b8f22eab
3 changed files with 8 additions and 1 deletions

View file

@ -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;