diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-01-20 12:19:16 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-15 11:04:45 +0000 |
commit | 859bf2c5ce58b8f453b33397c748ca6b061b7ca1 (patch) | |
tree | 3bbc4029c87c14c07d0eafc498d1425bcb9150e3 /src/plugins/cmakeprojectmanager/cmakeeditor.cpp | |
parent | d7caae5fa6e38a1de223fc98224a9930dff00d21 (diff) |
CMake: Do not run a cmake wizard all the time
Do not push the cmake running straight into the face of the user. Do it
in the background instead.
This needs some follow-up patches to become really useful.
Change-Id: I3457178b33e3f14bdeac25005a773d17abb73b65
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeeditor.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeeditor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp index 3fdde95596..df2fefe7ca 100644 --- a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp @@ -73,10 +73,10 @@ void CMakeEditor::finalizeInitialization() if (!document->isModified()) return; InfoBar *infoBar = document->infoBar(); - Id infoRunCmake("CMakeEditor.RunCMake"); - if (!infoBar->canInfoBeAdded(infoRunCmake)) + Id infoRunCMake("CMakeEditor.RunCMake"); + if (!infoBar->canInfoBeAdded(infoRunCMake)) return; - InfoBarEntry info(infoRunCmake, + InfoBarEntry info(infoRunCMake, tr("Changes to cmake files are shown in the project tree after building."), InfoBarEntry::GlobalSuppressionEnabled); info.setCustomButtonInfo(tr("Build now"), [document]() { |