From e964b7bff361ca641b0cbde5a21da2dfd991e442 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 17 Mar 2008 11:34:03 +0000 Subject: now always returns string from checkbox getValue --- client/widgets/checkbox.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'client/widgets') 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"; } -- cgit v1.2.3