summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/createdesktopentryoperation.cpp
diff options
context:
space:
mode:
authorNiels Weber <niels.weber@digia.com>2013-02-12 11:12:50 +0100
committerNiels Weber <niels.weber@digia.com>2013-02-12 16:47:39 +0100
commit7fb982e711f8b12afa585d19851b1bb0b7b081a4 (patch)
tree50ebb4dfdd0749137d5c9a4a6b6e8e5a7a2f5e8b /src/libs/installer/createdesktopentryoperation.cpp
parent5e9a054369b5460fce784b0763c3264c7eabe9ec (diff)
Unify some error strings.
Change-Id: I3ce7d3f84c9654e5c457b9e5f6131ac931e8ba2f Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src/libs/installer/createdesktopentryoperation.cpp')
-rw-r--r--src/libs/installer/createdesktopentryoperation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/installer/createdesktopentryoperation.cpp b/src/libs/installer/createdesktopentryoperation.cpp
index cbb6dce7d..da6aa1a14 100644
--- a/src/libs/installer/createdesktopentryoperation.cpp
+++ b/src/libs/installer/createdesktopentryoperation.cpp
@@ -84,11 +84,11 @@ QString CreateDesktopEntryOperation::absoluteFileName()
directory = QDir(*it).absoluteFilePath(QLatin1String("applications"));
QDir dir(directory);
- // let's see wheter this dir exists or we're able to create it
+ // let's see whether this dir exists or we're able to create it
if (!dir.exists() && !QDir().mkpath(directory))
continue;
- // we just try wheter we're able to open the file in ReadWrite
+ // we just try whether we're able to open the file in ReadWrite
QFile file(QDir(directory).absoluteFilePath(filename));
const bool existed = file.exists();
if (!file.open(QIODevice::ReadWrite))
@@ -143,8 +143,8 @@ bool CreateDesktopEntryOperation::performOperation()
const QStringList args = arguments();
if (args.count() != 2) {
setError(InvalidArguments);
- setErrorString(tr("Invalid arguments in %0: %1 arguments given, 2 expected.").arg(name()).arg(args
- .count()));
+ setErrorString(tr("Invalid arguments in %0: %1 arguments given, %2 expected%3.")
+ .arg(name()).arg(arguments().count()).arg(tr("exactly 2"), QLatin1String("")));
return false;
}