Skip to content

Commit

Permalink
correct OptionBool type.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteven4 committed Oct 16, 2024
1 parent 549a3b6 commit 9dd6090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion option.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class OptionBool : public Option
/* traditionally bool options without default are considered to be false. */
explicit(false) operator bool() const { return (!value_.isNull() && (value_ != '0')); }

option_t type() const override { return type_cstring; }
option_t type() const override { return type_boolean; }
bool has_value() const override { return !value_.isNull(); }
void reset() override { value_ = QString(); }
bool isEmpty() const override { return value_.isEmpty(); }
Expand Down

0 comments on commit 9dd6090

Please sign in to comment.