mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
commit
0840104edf
@ -271,6 +271,9 @@ class DupeGuru(QObject):
|
|||||||
self.willSavePrefs.emit()
|
self.willSavePrefs.emit()
|
||||||
self.prefs.save()
|
self.prefs.save()
|
||||||
self.model.save()
|
self.model.save()
|
||||||
|
# Workaround for #857, hide() or close().
|
||||||
|
if self.details_dialog is not None:
|
||||||
|
self.details_dialog.close()
|
||||||
QApplication.quit()
|
QApplication.quit()
|
||||||
|
|
||||||
# --- Signals
|
# --- Signals
|
||||||
|
@ -51,7 +51,7 @@ class DetailsDialog(QDockWidget):
|
|||||||
if not self.titleBarWidget(): # default title bar
|
if not self.titleBarWidget(): # default title bar
|
||||||
self.setTitleBarWidget(QWidget()) # disables title bar
|
self.setTitleBarWidget(QWidget()) # disables title bar
|
||||||
# Windows (and MacOS?) users cannot move a floating window which
|
# 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:
|
if not ISLINUX:
|
||||||
self.setFloating(False)
|
self.setFloating(False)
|
||||||
elif self.titleBarWidget() is not None: # title bar is disabled
|
elif self.titleBarWidget() is not None: # title bar is disabled
|
||||||
|
@ -19,7 +19,6 @@ tr = trget("ui")
|
|||||||
class DetailsDialog(DetailsDialogBase):
|
class DetailsDialog(DetailsDialogBase):
|
||||||
def __init__(self, parent, app):
|
def __init__(self, parent, app):
|
||||||
self.vController = None
|
self.vController = None
|
||||||
self.app = app
|
|
||||||
super().__init__(parent, app)
|
super().__init__(parent, app)
|
||||||
|
|
||||||
def _setupUi(self):
|
def _setupUi(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user