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