diff options
author | Andreas Holzammer <andreas.holzammer.qnx@kdab.com> | 2012-10-08 16:27:10 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2012-10-09 18:07:18 +0200 |
commit | bc15c2d4b68d77adf8929417311b36ad217d773f (patch) | |
tree | 3bb65aea13b1f5d5b5ed753a45ed2c3bc8c9d81b /src/libs/installer/copydirectoryoperation.cpp | |
parent | 8c7f454c42c28729adf6db5ee2789680b185656a (diff) |
Fix error message CopyDirectoryOperation overwrite
Error string did not match the actual expected
parameters. Also respect column count.
Change-Id: I3978d597697517ef4164d67f8d195f988e70f1d9
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src/libs/installer/copydirectoryoperation.cpp')
-rw-r--r-- | src/libs/installer/copydirectoryoperation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs/installer/copydirectoryoperation.cpp b/src/libs/installer/copydirectoryoperation.cpp index dabc7fa62..f10b077a8 100644 --- a/src/libs/installer/copydirectoryoperation.cpp +++ b/src/libs/installer/copydirectoryoperation.cpp @@ -67,7 +67,8 @@ bool CopyDirectoryOperation::performOperation() const QStringList args = arguments(); if (args.count() < 2 || args.count() > 3) { setError(InvalidArguments); - setErrorString(tr("Invalid arguments in %0: %1 arguments given, expected: <source> <target> [overwrite]").arg(name()) + setErrorString(tr("Invalid arguments in %0: %1 arguments given, expected: <source> <target>" + "[forceOverwrite]").arg(name()) .arg(args.count())); return false; } @@ -81,7 +82,8 @@ bool CopyDirectoryOperation::performOperation() overwrite = true; } else { setError(InvalidArguments); - setErrorString(tr("Invalid argument in %0: Third argument needs to be forceOverwrite, if specified").arg(name())); + setErrorString(tr("Invalid argument in %0: Third argument needs to be forceOverwrite, " + "if specified").arg(name())); return false; } } |