mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +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:
@@ -57,6 +57,7 @@ namespace BlackGui
|
||||
bool CDbLoadDataDialog::newerOrEmptyEntitiesDetected(CEntityFlags::Entity loadEntities)
|
||||
{
|
||||
this->show();
|
||||
CGuiApplication::modalWindowToFront();
|
||||
if (m_consolidating) { return false; }
|
||||
if (m_pendingEntities != CEntityFlags::NoEntity) { return false; } // already loading
|
||||
if (loadEntities == CEntityFlags::NoEntity) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user