summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/lib/general/gr_prefs.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/general/gr_prefs.cc b/gnuradio-core/src/lib/general/gr_prefs.cc
index 4a9e10f2d..c192e25be 100644
--- a/gnuradio-core/src/lib/general/gr_prefs.cc
+++ b/gnuradio-core/src/lib/general/gr_prefs.cc
@@ -166,9 +166,9 @@ gr_prefs::get_bool(const std::string section, const std::string option, bool def
return default_val;
}
std::transform(str.begin(), str.end(), str.begin(), ::tolower);
- if(str == "true")
+ if((str == "true") || (str == "on") || (str == "1"))
return true;
- else if(str == "false")
+ else if((str == "false") || (str == "off") || (str == "0"))
return false;
else
return default_val;