Skip to content

Commit

Permalink
Merge pull request #873 from glubsy/fix_857
Browse files Browse the repository at this point in the history
Fix 857
  • Loading branch information
arsenetar authored Apr 21, 2021
2 parents 4a40b34 + 6b4b436 commit 0840104
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions qt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ def shutdown(self):
self.willSavePrefs.emit()
self.prefs.save()
self.model.save()
# Workaround for #857, hide() or close().
if self.details_dialog is not None:
self.details_dialog.close()
QApplication.quit()

# --- Signals
Expand Down
2 changes: 1 addition & 1 deletion qt/details_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def update_options(self):
if not self.titleBarWidget(): # default title bar
self.setTitleBarWidget(QWidget()) # disables title bar
# Windows (and MacOS?) users cannot move a floating window which
# has not native decoration so we force it to dock for now
# has no native decoration so we force it to dock for now
if not ISLINUX:
self.setFloating(False)
elif self.titleBarWidget() is not None: # title bar is disabled
Expand Down
1 change: 0 additions & 1 deletion qt/pe/details_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
class DetailsDialog(DetailsDialogBase):
def __init__(self, parent, app):
self.vController = None
self.app = app
super().__init__(parent, app)

def _setupUi(self):
Expand Down

0 comments on commit 0840104

Please sign in to comment.