mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
Reverting "remove obsolete call"
This commit is contained in:
parent
595a7deef4
commit
1570f65c48
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,7 @@ class AddCards(QDialog):
|
|||
self.setupEditor()
|
||||
self.addChooser()
|
||||
self.addButtons()
|
||||
self.setupStatus()
|
||||
self.modelChanged(self.parent.deck.currentModel)
|
||||
self.addedItems = 0
|
||||
restoreGeom(self, "add")
|
||||
|
@ -61,6 +62,13 @@ class AddCards(QDialog):
|
|||
QDialogButtonBox.HelpRole)
|
||||
self.connect(self.helpButton, SIGNAL("clicked()"), self.helpRequested)
|
||||
|
||||
def setupStatus(self):
|
||||
"Make the status background the same colour as the frame."
|
||||
p = self.dialog.status.palette()
|
||||
c = unicode(p.color(QPalette.Window).name())
|
||||
self.dialog.status.setStyleSheet(
|
||||
"* { background: %s; color: #000000; }" % c)
|
||||
|
||||
def modelChanged(self, model):
|
||||
oldFact = self.editor.fact
|
||||
# create a new fact
|
||||
|
|
Loading…
Reference in a new issue