Skip to content

Commit

Permalink
Parent GUI to main window.
Browse files Browse the repository at this point in the history
  • Loading branch information
mottosso committed Jan 21, 2017
1 parent 9365155 commit 19edbfb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyblish_maya/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ def show():
"""

return (_discover_gui() or _show_no_gui)()
parent = next(
o for o in QtWidgets.QApplication.instance().topLevelWidgets()
if o.objectName() == "MayaWindow"
)

return (_discover_gui() or _show_no_gui)(parent)


def _discover_gui():
Expand Down

0 comments on commit 19edbfb

Please sign in to comment.