diff options
Diffstat (limited to 'src/gui/models/colormodel.cpp')
-rw-r--r-- | src/gui/models/colormodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/models/colormodel.cpp b/src/gui/models/colormodel.cpp index 76a7da8fa..3bbded2e2 100644 --- a/src/gui/models/colormodel.cpp +++ b/src/gui/models/colormodel.cpp @@ -71,7 +71,7 @@ void ColorModel::add(const std::string &name, const Color *const color1, ColorModel *ColorModel::createDefault(const Widget2 *const widget) { ColorModel *const model = new ColorModel; - if (!widget) + if (widget == nullptr) return model; // TRANSLATORS: color name addColor(_("black"), BLACK); |