diff options
Diffstat (limited to 'client/widgets')
-rw-r--r-- | client/widgets/checkbox.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/client/widgets/checkbox.cc b/client/widgets/checkbox.cc index 7d261e9..3aa5990 100644 --- a/client/widgets/checkbox.cc +++ b/client/widgets/checkbox.cc @@ -60,9 +60,6 @@ CheckBox::CheckBox(QDomNode node) QString CheckBox::getValue() { - if(checkState() == Qt::Unchecked) { - return "false"; - } else if(checkState() == Qt::Checked) { - return "true"; - } + if(checkState() == Qt::Checked) return "true"; + return "false"; } |