Partially fix tab close memory leak

This commit is contained in:
BasioMeusPuga
2018-03-22 19:06:16 +05:30
parent e6eb056ec6
commit 42b655862c
4 changed files with 20 additions and 17 deletions

View File

@@ -32,7 +32,7 @@ from resources import settingswindow
class SettingsUI(QtWidgets.QDialog, settingswindow.Ui_Dialog):
def __init__(self, parent):
def __init__(self, parent=None):
super(SettingsUI, self).__init__()
self.setupUi(self)
self._translate = QtCore.QCoreApplication.translate
@@ -216,7 +216,7 @@ class SettingsUI(QtWidgets.QDialog, settingswindow.Ui_Dialog):
# Traverse directories looking for files
self.parent.statusMessage.setText(
self._translate('SettingsUI', 'Checking library folders'))
self.thread = BackGroundBookSearch(data_pairs, self)
self.thread = BackGroundBookSearch(data_pairs)
self.thread.finished.connect(self.finished_iterating)
self.thread.start()