mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 22:57:11 -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")
|
||||
|
||||
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']
|
||||
if new.isValid():
|
||||
txtcol = unicode(new.name())
|
||||
|
|
|
|||
Loading…
Reference in a new issue