mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
provide correct parent to qcolordialog
This commit is contained in:
parent
af26ea2000
commit
473b4d326f
1 changed files with 2 additions and 1 deletions
|
@ -622,7 +622,8 @@ class FactEditor(object):
|
|||
def selectForeground(self):
|
||||
w = self.focusedEdit()
|
||||
recent = ankiqt.mw.config['recentColours']
|
||||
new = QColorDialog.getColor(QColor(recent[-1]))
|
||||
new = QColorDialog.getColor(QColor(recent[-1]),
|
||||
self.parent)
|
||||
if new.isValid():
|
||||
txtcol = unicode(new.name())
|
||||
self._updateForegroundButton(txtcol)
|
||||
|
|
Loading…
Reference in a new issue