Fixed message falling behind FreeCAD
This commit is contained in:
parent
349c8c70f5
commit
d9b07e6b4c
|
@ -103,13 +103,12 @@ def refreshToolsAction():
|
||||||
from PySide.QtCore import Qt
|
from PySide.QtCore import Qt
|
||||||
|
|
||||||
print("Refresh cached results")
|
print("Refresh cached results")
|
||||||
# fw = QApplication.focusWidget()
|
|
||||||
# if fw is not None:
|
|
||||||
# fw.clearFocus()
|
|
||||||
msgBox = QMessageBox()
|
msgBox = QMessageBox()
|
||||||
msgBox.setWindowFlags(Qt.WindowType.WindowStaysOnTopHint)
|
msgBox.setWindowFlags(Qt.WindowType.WindowStaysOnTopHint)
|
||||||
|
# Get the main window from FreeCAD
|
||||||
|
mw = Gui.getMainWindow()
|
||||||
reply = msgBox.question(
|
reply = msgBox.question(
|
||||||
None,
|
mw,
|
||||||
translate("SearchBar", "Load all workbenches?"),
|
translate("SearchBar", "Load all workbenches?"),
|
||||||
translate(
|
translate(
|
||||||
"SearchBar",
|
"SearchBar",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user