macOS: Work around window stacking order issue after closing dialog

Fixes: QTCREATORBUG-22906
Change-Id: Id3c9f5e87ac83686b34c7f6d2e445312fc401ba6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Eike Ziller
2019-09-06 09:44:02 +02:00
parent d72632acd6
commit 6476c62065

View File

@@ -449,6 +449,10 @@ void PathChooser::slotBrowse()
break;
}
// work around QTBUG-61004 / QTCREATORBUG-22906
window()->raise();
window()->activateWindow();
// Delete trailing slashes unless it is "/"|"\\", only
if (!newPath.isEmpty()) {
newPath = QDir::toNativeSeparators(newPath);