Kaynağa Gözat

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

gxalpha 2 yıl önce
ebeveyn
işleme
f6b6873aaa
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  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);