Commit 04e267b4 authored by Yuchen Deng's avatar Yuchen Deng
Browse files

CMake: Don't save entry if CMake exited with errors



Change-Id: Ife98b33c3269a452187c957bd5579722b3ae4018
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 451732a3
......@@ -35,6 +35,7 @@
#include <utils/hostosinfo.h>
#include <utils/pathchooser.h>
#include <utils/fancylineedit.h>
#include <utils/historycompleter.h>
#include <projectexplorer/kitinformation.h>
#include <projectexplorer/kitmanager.h>
#include <projectexplorer/toolchain.h>
......@@ -790,6 +791,7 @@ void CMakeRunPage::cmakeFinished()
if (m_cmakeProcess->exitCode() != 0) {
m_exitCodeLabel->setVisible(true);
m_exitCodeLabel->setText(tr("CMake exited with errors. Please check CMake output."));
static_cast<Utils::HistoryCompleter *>(m_argumentsLineEdit->completer())->removeHistoryItem(0);
m_haveCbpFile = false;
} else {
m_exitCodeLabel->setVisible(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment