don't use buggy osx colour dialog

This commit is contained in:
Damien Elmes 2011-01-15 20:19:37 +09:00
parent 146a881f9b
commit 22134a5fb8

View file

@ -259,7 +259,9 @@ order by n""", id=card.id)
self.renderPreview()
def chooseColour(self, button, type="field"):
new = QColorDialog.getColor(button.palette().window().color(), self)
new = QColorDialog.getColor(button.palette().window().color(), self,
_("Choose Color"),
QColorDialog.DontUseNativeDialog)
if new.isValid():
button.setPalette(QPalette(new))
if type == "field":