provide correct parent to qcolordialog

This commit is contained in:
Damien Elmes 2009-02-15 15:52:58 +09:00
parent af26ea2000
commit 473b4d326f

View file

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