From d41391c30a393b930102ce43ae6592f0ed9c8e20 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 5 Aug 2015 18:07:11 +0200 Subject: [PATCH] Minor fix. --- src/notebook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notebook.cc b/src/notebook.cc index 8ebbb8b..f33037f 100644 --- a/src/notebook.cc +++ b/src/notebook.cc @@ -121,7 +121,7 @@ bool Notebook::save(int page) { //If CMakeLists.txt have been modified: if(boost::filesystem::path(view->file_path).filename().string()=="CMakeLists.txt") { - if(directories.cmake && directories.cmake->project_path!="" && CMake::create_compile_commands(directories.cmake->project_path.string())) { + if(directories.cmake && directories.cmake->project_path!="" && boost::filesystem::path(view->file_path)>=directories.cmake->project_path && CMake::create_compile_commands(directories.cmake->project_path.string())) { directories.open_folder(); for(auto source_view: source_views) { if(auto source_clang_view=dynamic_cast(source_view)) {