diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 66106761..43e6cd09 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -616,7 +616,7 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) { //First delete any existing graph file. fs::remove(_game.GraphPath()); - if (_settings["Generate Graph Image"].as() && fs::exists(g_path_graphvis)) { + if (_settings["generate Graph Image"] && _settings["Generate Graph Image"].as() && fs::exists(g_path_graphvis)) { BOOST_LOG_TRIVIAL(trace) << "Outputting the graph."; fs::path temp = fs::path(_game.GraphPath().string() + ".temp"); boss::SaveGraph(graph, temp);