From d9b07e6b4c656c361b00ab684b0c2c3e5a6bc7e0 Mon Sep 17 00:00:00 2001 From: Paul Ebbers Date: Sun, 23 Feb 2025 17:10:42 +0100 Subject: [PATCH] Fixed message falling behind FreeCAD --- RefreshTools.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/RefreshTools.py b/RefreshTools.py index d4fe6e8..38dcd78 100644 --- a/RefreshTools.py +++ b/RefreshTools.py @@ -103,13 +103,12 @@ def refreshToolsAction(): from PySide.QtCore import Qt print("Refresh cached results") - # fw = QApplication.focusWidget() - # if fw is not None: - # fw.clearFocus() msgBox = QMessageBox() msgBox.setWindowFlags(Qt.WindowType.WindowStaysOnTopHint) + # Get the main window from FreeCAD + mw = Gui.getMainWindow() reply = msgBox.question( - None, + mw, translate("SearchBar", "Load all workbenches?"), translate( "SearchBar",