Skip to content

Commit

Permalink
Fixed|Widgets|libcore: Enabling widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 26, 2017
1 parent e5cbbaf commit 8b9980f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/sdk/libcore/include/de/widgets/widget.h
Expand Up @@ -139,7 +139,7 @@ class DENG2_PUBLIC Widget

void show(bool doShow = true);
inline void hide() { show(false); }
void enable(bool yes = true) { setBehavior(Disabled, yes); }
void enable(bool yes = true) { setBehavior(Disabled, !yes); }
void disable(bool yes = true) { setBehavior(Disabled, yes); }

inline bool isHidden() const { return hasFamilyBehavior(Hidden); }
Expand Down

0 comments on commit 8b9980f

Please sign in to comment.