diff options
Diffstat (limited to 'src/libs/installer/qtpatchoperation.cpp')
-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(""))); |