Permalink
Browse files

Remove @pyqtSlot for some non-QObject classes

Not sure if I got all, but at least I got the ones which fail
immediately on start.

See #1669.
  • Loading branch information...
The-Compiler committed Jul 21, 2016
1 parent ac25537 commit 63e466f01985abd7be275855f0af7450eb97d8e1
Showing with 1 addition and 7 deletions.
  1. +0 −1 qutebrowser/app.py
  2. +1 −5 qutebrowser/config/config.py
  3. +0 −1 qutebrowser/misc/savemanager.py
View
@@ -476,7 +476,6 @@ def __init__(self, args):
self._shutting_down = False
self._args = args
@pyqtSlot()
def on_last_window_closed(self):
"""Slot which gets invoked when the last window was closed."""
self.shutdown(last_window=True)
@@ -33,7 +33,7 @@
import collections
import collections.abc
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, QUrl, QSettings
from PyQt5.QtCore import pyqtSignal, QObject, QUrl, QSettings
from qutebrowser.config import configdata, configexc, textwrapper
from qutebrowser.config.parsers import ini, keyconf
@@ -94,8 +94,6 @@ def __call__(self, func):
The decorated function.
"""
if self._function:
@pyqtSlot(str, str)
@pyqtSlot()
@functools.wraps(func)
def wrapper(sectname=None, optname=None):
if sectname is None and optname is None:
@@ -108,8 +106,6 @@ def wrapper(sectname=None, optname=None):
else:
return func()
else:
@pyqtSlot(str, str)
@pyqtSlot()
@functools.wraps(func)
def wrapper(wrapper_self, sectname=None, optname=None):
if sectname is None and optname is None:
@@ -67,7 +67,6 @@ def __repr__(self):
save_on_exit=self._save_on_exit,
filename=self._filename)
@pyqtSlot()
def mark_dirty(self):
"""Mark this saveable as dirty (having changes)."""
log.save.debug("Marking {} as dirty.".format(self._name))

0 comments on commit 63e466f

Please sign in to comment.