Check that the colour returned for a status icon in project settings is valid

This commit is contained in:
Veronica K. B. Olsen
2020-08-15 15:22:40 +02:00
parent da747b2849
commit 1a4fd45803
+1 -1
View File
@@ -383,7 +383,7 @@ class GuiProjectEditStatus(QWidget):
newCol = QColorDialog.getColor(
self.selColour, self, "Select Colour", QColorDialog.DontUseNativeDialog
)
if newCol:
if newCol.isValid():
self.selColour = newCol
colPixmap = QPixmap(self.iPx, self.iPx)
colPixmap.fill(newCol)