diff options
author | senator <senator> | 2008-03-17 11:34:03 +0000 |
---|---|---|
committer | senator <senator> | 2008-03-17 11:34:03 +0000 |
commit | e964b7bff361ca641b0cbde5a21da2dfd991e442 (patch) | |
tree | a3bbf1659aaa92630d6ebec0112a50765ccb5fde /client/widgets/checkbox.cc | |
parent | 31facd90fcd595d38520cf05dcedfd03283a74c3 (diff) |
now always returns string from checkbox getValue
Diffstat (limited to 'client/widgets/checkbox.cc')
-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"; } |