forked from qt-creator/qt-creator
CMakePM: Allow CMake peset kits refresh without configuring first
This allows the user to reload the presets kits after editing CMakePresets.json without configuring the project first. Fixes: QTCREATORBUG-30238 Change-Id: Id448dd8e821591f6357ec9618f114733c13a3121 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "cmakeprocess.h"
|
||||
#include "cmakeproject.h"
|
||||
#include "cmakeprojectconstants.h"
|
||||
#include "cmakeprojectimporter.h"
|
||||
#include "cmakeprojectmanagertr.h"
|
||||
#include "cmakeprojectnodes.h"
|
||||
#include "cmakespecificsettings.h"
|
||||
@@ -362,6 +363,8 @@ void CMakeManager::reloadCMakePresets()
|
||||
|
||||
project->setOldPresetKits(oldKits);
|
||||
|
||||
emit project->projectImporter()->cmakePresetsUpdated();
|
||||
|
||||
Core::ModeManager::activateMode(ProjectExplorer::Constants::MODE_SESSION);
|
||||
Core::ModeManager::setFocusToCurrentMode();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user