From c2a57359fe4b397a202ff2fc643c968c5b023287 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Mon, 25 Mar 2024 11:02:03 +0100 Subject: [PATCH] options: fix BrowseRecursiveFollowLinks reading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #6769 added the boolean BrowseRecursiveFollowLinks options, but while it's saved as a boolean, it's read as an integer causing this error: ``` Options::readFromFile / Error code 5 while reading values from "/home/sgotti/.config/RawTherapee/options": Key file contains key “BrowseRecursiveFollowLinks” in group “File Browser” which has a value that cannot be interpreted. ``` --- rtgui/options.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/options.cc b/rtgui/options.cc index 81271acde..c8750809b 100644 --- a/rtgui/options.cc +++ b/rtgui/options.cc @@ -1364,7 +1364,7 @@ void Options::readFromFile(Glib::ustring fname) } if (keyFile.has_key("File Browser", "BrowseRecursiveFollowLinks")) { - browseRecursiveFollowLinks = keyFile.get_integer("File Browser", "BrowseRecursiveFollowLinks"); + browseRecursiveFollowLinks = keyFile.get_boolean("File Browser", "BrowseRecursiveFollowLinks"); } }