Skip to content

Commit

Permalink
Drop remaining bits of QtCore.QObject.config and QtCore.QObject.log
Browse files Browse the repository at this point in the history
  • Loading branch information
zas authored and phw committed Apr 24, 2024
1 parent da4ff8c commit d7bb9dc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions picard/tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,6 @@ def __init__(self, picard_args, localedir, autoupdate, pipe_handler=None):
# 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
Expand Down
1 change: 0 additions & 1 deletion picard/ui/options/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ def load_backup(self):
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,
Expand Down
4 changes: 1 addition & 3 deletions test/picardtestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit d7bb9dc

Please sign in to comment.