diff options
author | Tim Jenssen <tim.jenssen@digia.com> | 2013-04-09 10:52:19 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2013-04-09 12:35:12 +0200 |
commit | ba4ec89c5eb3b072b9de1bdc149bba409f8fd95b (patch) | |
tree | 153de5419985d068d3324c874cc9e3b3276ec5b0 /src/libs/installer | |
parent | 90385dcbd6aa4172a67f31efb2f7bb6071020354 (diff) |
enable Qt4 patch syntax in QtPatchOperation
Change-Id: I006db8975e077d0f7391b7d273606299cc2fd19e
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer')
-rw-r--r-- | src/libs/installer/qtpatchoperation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/installer/qtpatchoperation.cpp b/src/libs/installer/qtpatchoperation.cpp index 573db7777..9699219ec 100644 --- a/src/libs/installer/qtpatchoperation.cpp +++ b/src/libs/installer/qtpatchoperation.cpp @@ -161,7 +161,8 @@ bool QtPatchOperation::performOperation() // 2. new/target qtpath // 3. version if greather Qt4 - if (arguments().count() != 3) { + // the possible 2 argument case is here to support old syntax + if (arguments().count() < 2 || arguments().count() > 3) { setError(InvalidArguments); setErrorString(tr("Invalid arguments in %0: %1 arguments given, %2 expected%3.") .arg(name()).arg(arguments().count()).arg(tr("exactly 3"), QLatin1String(""))); |