From 030ce39105a1f9894b04670923204fcf7493db20 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 2 Jan 2011 18:21:27 +0900 Subject: [PATCH] work around bug in qt color dialog --- 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 cd2e9a864..8d6a2750e 100644 --- a/ankiqt/ui/facteditor.py +++ b/ankiqt/ui/facteditor.py @@ -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())