Reverting "remove obsolete call"

This commit is contained in:
Damien Elmes 2008-11-21 20:13:01 +09:00
parent 595a7deef4
commit 1570f65c48

View file

@ -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