mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Ref T596, do not call shutdown if close is called, as close already calls shutdown
This commit is contained in:
committed by
Mat Sutcliffe
parent
5626b28ddc
commit
6f1fb20b1c
@@ -695,9 +695,14 @@ namespace BlackGui
|
||||
{
|
||||
// a close event might already trigger a shutdown
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
if (!this->mainApplicationWidget()) { return; }
|
||||
this->mainApplicationWidget()->close();
|
||||
this->gracefulShutdown();
|
||||
});
|
||||
|
||||
// T596, do not shutdown here, as close can be canceled
|
||||
// if shutdown is called, there is no way back
|
||||
// this->gracefulShutdown();
|
||||
},
|
||||
Qt::QueuedConnection);
|
||||
Q_ASSERT_X(c, Q_FUNC_INFO, "Connect failed");
|
||||
Q_UNUSED(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user