work around bug in qt color dialog

This commit is contained in:
Damien Elmes 2011-01-02 18:21:27 +09:00
parent 364773fa9d
commit 030ce39105

View file

@ -747,7 +747,8 @@ class FactEditor(object):
runHook("colourChanged") runHook("colourChanged")
def onNewColour(self): def onNewColour(self):
new = QColorDialog.getColor(Qt.black, self.colourDiag) new = QColorDialog.getColor(Qt.black, self.parent)
self.parent.raise_()
recent = ankiqt.mw.config['recentColours'] recent = ankiqt.mw.config['recentColours']
if new.isValid(): if new.isValid():
txtcol = unicode(new.name()) txtcol = unicode(new.name())