mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
attempt to fix travis build
I can't reproduce the current failure on a local machine with py3.7. Seems to be related to a parent() method inherited from Qt. We don't need the instance var in any case.
This commit is contained in:
parent
0d9ca41c7a
commit
c88e7913ee
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ from anki.lang import _, ngettext
|
|||
class Models(QDialog):
|
||||
def __init__(self, mw: AnkiQt, parent=None, fromMain=False):
|
||||
self.mw = mw
|
||||
self.parent = parent or mw
|
||||
parent = parent or mw
|
||||
self.fromMain = fromMain
|
||||
QDialog.__init__(self, self.parent, Qt.Window)
|
||||
QDialog.__init__(self, parent, Qt.Window)
|
||||
self.col = mw.col
|
||||
assert(self.col)
|
||||
self.mm = self.col.models
|
||||
|
|
Loading…
Reference in a new issue