From 1a4fd4580384b12782a79623413597546272fbf5 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 15 Aug 2020 15:22:40 +0200 Subject: [PATCH] Check that the colour returned for a status icon in project settings is valid --- nw/gui/projsettings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nw/gui/projsettings.py b/nw/gui/projsettings.py index 44f39d5b..066c618f 100644 --- a/nw/gui/projsettings.py +++ b/nw/gui/projsettings.py @@ -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)