mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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):
|
class Models(QDialog):
|
||||||
def __init__(self, mw: AnkiQt, parent=None, fromMain=False):
|
def __init__(self, mw: AnkiQt, parent=None, fromMain=False):
|
||||||
self.mw = mw
|
self.mw = mw
|
||||||
self.parent = parent or mw
|
parent = parent or mw
|
||||||
self.fromMain = fromMain
|
self.fromMain = fromMain
|
||||||
QDialog.__init__(self, self.parent, Qt.Window)
|
QDialog.__init__(self, parent, Qt.Window)
|
||||||
self.col = mw.col
|
self.col = mw.col
|
||||||
assert(self.col)
|
assert(self.col)
|
||||||
self.mm = self.col.models
|
self.mm = self.col.models
|
||||||
|
|
Loading…
Reference in a new issue