From 1d8330f1eb83e48379c36d403a38070eb118cdac Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 1 Mar 2016 15:09:53 +0100 Subject: [PATCH] Handle missing setting gracefully. --- src/libcalamaresui/Settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcalamaresui/Settings.cpp b/src/libcalamaresui/Settings.cpp index a2d11c2d1..362ea1b45 100644 --- a/src/libcalamaresui/Settings.cpp +++ b/src/libcalamaresui/Settings.cpp @@ -149,7 +149,7 @@ Settings::Settings( const QString& settingsFilePath, .as< std::string >() ); m_promptInstall = config[ "prompt-install" ].as< bool >(); - m_doChroot = !config[ "dont-chroot" ].as< bool >(); + m_doChroot = config[ "dont-chroot" ] ? !config[ "dont-chroot" ].as< bool >() : true; } catch ( YAML::Exception& e ) {