Browse Source

UI: Re-raise missing files dialog on macOS after file is selected

gxalpha 2 years ago
parent
commit
8b48d8e867
1 changed files with 5 additions and 0 deletions
  1. 5 0
      UI/window-missing-files.cpp

+ 5 - 0
UI/window-missing-files.cpp

@@ -164,6 +164,11 @@ void MissingFilesPathItemDelegate::handleBrowse(QWidget *container)
 			container, QTStr("MissingFiles.SelectFile"),
 			currentPath, nullptr);
 
+#ifdef __APPLE__
+		// TODO: Revisit when QTBUG-42661 is fixed
+		container->window()->raise();
+#endif
+
 		if (!newPath.isEmpty()) {
 			container->setProperty(PATH_LIST_PROP,
 					       QStringList() << newPath);