[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdevelop] projectmanagers/cmake/settings: Explicitly reload the model whenever the cache has change
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2013-04-30 18:03:23
Message-ID: 20130430180323.8D776A603F () git ! kde ! org
[Download RAW message or body]

Git commit 8424a911212d74cfe482bcff70595465f4f0b52f by Aleix Pol.
Committed on 30/04/2013 at 20:03.
Pushed by apol into branch 'master'.

Explicitly reload the model whenever the cache has changed

This way we make sure the project is re-parsed with the new CMakeCache, this
was a problem with some projects that use RUNTIME_OUTPUT_DIRECTORY

BUG: 317587

M  +1    -0    projectmanagers/cmake/settings/cmakepreferences.cpp

http://commits.kde.org/kdevelop/8424a911212d74cfe482bcff70595465f4f0b52f

diff --git a/projectmanagers/cmake/settings/cmakepreferences.cpp \
b/projectmanagers/cmake/settings/cmakepreferences.cpp index c5d509b..c309fef 100644
--- a/projectmanagers/cmake/settings/cmakepreferences.cpp
+++ b/projectmanagers/cmake/settings/cmakepreferences.cpp
@@ -361,6 +361,7 @@ void CMakePreferences::configure()
         connect(job, SIGNAL(finished(KJob*)), SLOT(cacheUpdated()));
     }
 
+    connect(job, SIGNAL(finished(KJob*)), m_project, SLOT(reloadModel()));
     KDevelop::ICore::self()->runController()->registerJob(job);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic