JobConfig::isEnabled() should be const

This commit is contained in:
Andrew Meadows 2018-02-12 16:15:56 -08:00
parent 693e27716e
commit fea39fbe03

View file

@ -96,7 +96,7 @@ public:
JobConfig() = default;
JobConfig(bool enabled) : alwaysEnabled{ false }, enabled{ enabled } {}
bool isEnabled() { return alwaysEnabled || enabled; }
bool isEnabled() const { return alwaysEnabled || enabled; }
void setEnabled(bool enable) { enabled = alwaysEnabled || enable; emit dirtyEnabled(); }
bool alwaysEnabled{ true };