From 5ddd83247c47b50d27c533c6060c17a4f3d26849 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 28 Aug 2020 10:38:20 +0200 Subject: 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 Reviewed-by: Oliver Wolff --- src/plugins/incredibuild/commandbuilder.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/plugins/incredibuild/commandbuilder.cpp') 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) -- cgit v1.2.1