From b54651b5a2a79576872b233dc2f07a0b3286df53 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 25 Apr 2014 09:32:57 +0200 Subject: [PATCH] Minor patch (while saving configuration file) --- lib/core/option.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 7ea6b67de..ab3f119a3 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1828,10 +1828,8 @@ def _saveCmdline(): if datatype == OPTION_TYPE.BOOLEAN: value = "False" elif datatype in (OPTION_TYPE.INTEGER, OPTION_TYPE.FLOAT): - if option in ("threads", "verbose"): - value = "1" - elif option == "timeout": - value = "10" + if option in defaults: + value = str(defaults[option]) else: value = "0" elif datatype == OPTION_TYPE.STRING: