mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-24 14:15:15 +00:00
Drop remaining bits of QtCore.QObject.config and QtCore.QObject.log
This commit is contained in:
committed by
Philipp Wolfer
parent
da4ff8c03b
commit
d7bb9dc0a2
@@ -331,10 +331,6 @@ class Tagger(QtWidgets.QApplication):
|
||||
# log interesting environment variables
|
||||
log.debug("Qt Env.: %s", " ".join("%s=%r" % (k, v) for k, v in os.environ.items() if k.startswith('QT_')))
|
||||
|
||||
# for compatibility with pre-1.3 plugins
|
||||
QtCore.QObject.config = config
|
||||
QtCore.QObject.log = log
|
||||
|
||||
check_io_encoding()
|
||||
|
||||
# Must be before config upgrade because upgrade dialogs need to be
|
||||
|
||||
@@ -255,7 +255,6 @@ class MaintenanceOptionsPage(OptionsPage):
|
||||
if load_new_config(filename):
|
||||
config = get_config()
|
||||
upgrade_config(config)
|
||||
QtCore.QObject.config = get_config()
|
||||
self.signal_reload.emit()
|
||||
dialog = QtWidgets.QMessageBox(
|
||||
QtWidgets.QMessageBox.Icon.Information,
|
||||
|
||||
@@ -58,9 +58,7 @@ class FakeTagger(QtCore.QObject):
|
||||
tagger_stats_changed = QtCore.pyqtSignal()
|
||||
|
||||
def __init__(self):
|
||||
QtCore.QObject.__init__(self)
|
||||
QtCore.QObject.config = config
|
||||
QtCore.QObject.log = log
|
||||
super().__init__()
|
||||
self.tagger_stats_changed.connect(self.emit)
|
||||
self.exit_cleanup = []
|
||||
self.files = {}
|
||||
|
||||
Reference in New Issue
Block a user