mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Bring a modal window back to front when opening a dialog
Otherwise it can happen the modal window in background blocks the other UI.
This commit is contained in:
@@ -63,9 +63,10 @@ namespace BlackSimPlugin
|
||||
const QPointer<CSimulatorEmulated> myself(this);
|
||||
QTimer::singleShot(1000, this, [ = ]
|
||||
{
|
||||
if (myself.isNull()) { return; }
|
||||
if (myself.isNull() || !sGui || sGui->isShuttingDown()) { return; }
|
||||
this->emitSimulatorCombinedStatus();
|
||||
m_monitorWidget->show();
|
||||
CGuiApplication::modalWindowToFront();
|
||||
});
|
||||
|
||||
if (canLog()) { m_monitorWidget->appendReceivingCall(Q_FUNC_INFO); }
|
||||
|
||||
Reference in New Issue
Block a user