forked from qt-creator/qt-creator
CMakePM: Allow copy / editing of build directory
This reverts 69b0a2cafc
The build directory is preset and by having the ability to edit, you can
easily do a new build by appending a number.
When you have a new build directory a dialog will warn you that you'll
start from scratch. This is enough of a hinderniss to the user to start
typing and get lots of build directories. No need to have it read only.
Fixes: QTCREATORBUG-24451
Change-Id: Id1bc77d0fbcb071608f5ac83ddd6b8af943fdac5
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -844,9 +844,7 @@ CMakeBuildConfiguration::CMakeBuildConfiguration(Target *target, Id id)
|
||||
{
|
||||
m_buildSystem = new CMakeBuildSystem(this);
|
||||
|
||||
buildDirectoryAspect()->setFileDialogOnly(true);
|
||||
const auto buildDirAspect = aspect<BuildDirectoryAspect>();
|
||||
buildDirAspect->setFileDialogOnly(true);
|
||||
buildDirAspect->setValueAcceptor(
|
||||
[](const QString &oldDir, const QString &newDir) -> Utils::optional<QString> {
|
||||
if (oldDir.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user