Fix lint
This commit is contained in:
parent
162e6d6483
commit
4686e0349b
@ -784,9 +784,11 @@ class DownloadManager(QObject):
|
|||||||
The arguments are int indices to the downloads.
|
The arguments are int indices to the downloads.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
begin_remove_rows = pyqtSignal(QModelIndex, int, int) # parent, first, last
|
# parent, first, last
|
||||||
|
begin_remove_rows = pyqtSignal(QModelIndex, int, int)
|
||||||
end_remove_rows = pyqtSignal()
|
end_remove_rows = pyqtSignal()
|
||||||
begin_insert_rows = pyqtSignal(QModelIndex, int, int) # parent, first, last
|
# parent, first, last
|
||||||
|
begin_insert_rows = pyqtSignal(QModelIndex, int, int)
|
||||||
end_insert_rows = pyqtSignal()
|
end_insert_rows = pyqtSignal()
|
||||||
data_changed = pyqtSignal(int, int) # begin, end
|
data_changed = pyqtSignal(int, int) # begin, end
|
||||||
|
|
||||||
@ -1100,6 +1102,8 @@ class DownloadManager(QObject):
|
|||||||
|
|
||||||
class DownloadModel(QAbstractListModel):
|
class DownloadModel(QAbstractListModel):
|
||||||
|
|
||||||
|
"""A list model showing downloads."""
|
||||||
|
|
||||||
def __init__(self, downloader, parent=None):
|
def __init__(self, downloader, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self._downloader = downloader
|
self._downloader = downloader
|
||||||
|
@ -497,7 +497,7 @@ class MainWindow(QWidget):
|
|||||||
if self is last_visible:
|
if self is last_visible:
|
||||||
objreg.delete('last-visible-main-window')
|
objreg.delete('last-visible-main-window')
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
objreg.get('session-manager').save_last_window_session()
|
objreg.get('session-manager').save_last_window_session()
|
||||||
self._save_geometry()
|
self._save_geometry()
|
||||||
log.destroy.debug("Closing window {}".format(self.win_id))
|
log.destroy.debug("Closing window {}".format(self.win_id))
|
||||||
|
Loading…
Reference in New Issue
Block a user