diff options
author | Christian Stenger <christian.stenger@qt.io> | 2020-08-28 10:38:20 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2020-08-31 09:56:13 +0000 |
commit | 5ddd83247c47b50d27c533c6060c17a4f3d26849 (patch) | |
tree | 910d945cfd2961742a66ba0bce32d560493cc1a5 /src/plugins/incredibuild/commandbuilder.cpp | |
parent | f1062f1366c8d0ccf4e8a1c1498e90c7e6f1a846 (diff) | |
download | qt-creator-5ddd83247c47b50d27c533c6060c17a4f3d26849.tar.gz |
Incredibuild: Fix handling of build commands
The default command is supposed to be a placeholder not
an entry done by the user.
Allow entering an empty string again to rely on the default.
As on it fix place holders inside strings.
Amends e04b9a5348c.
Change-Id: I111c843d9620ecc8cf5a7a3c63ca7ac92e588e0c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/incredibuild/commandbuilder.cpp')
-rw-r--r-- | src/plugins/incredibuild/commandbuilder.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/incredibuild/commandbuilder.cpp b/src/plugins/incredibuild/commandbuilder.cpp index b290afdea7..4e46ab8d00 100644 --- a/src/plugins/incredibuild/commandbuilder.cpp +++ b/src/plugins/incredibuild/commandbuilder.cpp @@ -48,10 +48,7 @@ void CommandBuilder::toMap(QVariantMap *map) const void CommandBuilder::setCommand(const QString &command) { - if (command == defaultCommand()) - m_command.clear(); - else - m_command = command; + m_command = command; } void CommandBuilder::setArguments(const QString &arguments) |