From 473b4d326f17d191520a9099b0b55eae81d0a080 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 15 Feb 2009 15:52:58 +0900 Subject: [PATCH] provide correct parent to qcolordialog --- ankiqt/ui/facteditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/facteditor.py b/ankiqt/ui/facteditor.py index 87d61ffbf..f1ca5c8f7 100644 --- a/ankiqt/ui/facteditor.py +++ b/ankiqt/ui/facteditor.py @@ -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)