Skip to content

Commit

Permalink
gui: workaround for Qt failing to embed applets in hidden and detache…
Browse files Browse the repository at this point in the history
…d QDockWidgets
sbourdeauducq committed Feb 19, 2016
1 parent 5f5427f commit 3b81dd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions artiq/frontend/artiq_gui.py
Original file line number Diff line number Diff line change
@@ -144,6 +144,11 @@ def main():
main_window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, d_explorer)

# load/initialize state
if os.name == "nt":
# HACK: show the main window before creating applets.
# Otherwise, the windows of those applets that are in detached
# QDockWidgets fail to be embedded.
main_window.show()
smgr.load()
smgr.start()
atexit_register_coroutine(smgr.stop)

0 comments on commit 3b81dd5

Please sign in to comment.