mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
work around bug in qt color dialog
This commit is contained in:
parent
364773fa9d
commit
030ce39105
1 changed files with 2 additions and 1 deletions
|
|
@ -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())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue