Skip to content

Commit

Permalink
correct Widget::Enabled property getter
Browse files Browse the repository at this point in the history
  • Loading branch information
oktonion committed May 29, 2019
1 parent 1570c4d commit 34f35bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void Widget::setEnabled(bool val)

bool Widget::getEnabled() const
{
return resource.argument[Arguments::flags].get(Flags::Blocked);
return resource.argument[Arguments::flags].get(Flags::Blocked) == false;
}

void PhWidgets::Widget::setHelpTopic(std::string val)
Expand Down

0 comments on commit 34f35bf

Please sign in to comment.