aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-07-15 13:40:58 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-07-16 18:02:00 +0200
commit53a95b6f16788c6c248bb695b9ce9ad5e3a031ab (patch)
tree42bcb4bbe1ec84e6836fa8d61fd94abb8a7c26f0 /src/lib/corelib
parent68db620a139f7dde967750f577924696405c8104 (diff)
Add missing metatype registration.
The code path where this is relevant has apparently never been taken, so add an autotest as well (and fix the wording of the error message). Change-Id: I314f1cb888264d30920a58f4e9cbbbf01fbcc4e6 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/corelib')
-rw-r--r--src/lib/corelib/api/jobs.cpp2
-rw-r--r--src/lib/corelib/api/project.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/corelib/api/jobs.cpp b/src/lib/corelib/api/jobs.cpp
index 035a0bf8f..6b8cf702e 100644
--- a/src/lib/corelib/api/jobs.cpp
+++ b/src/lib/corelib/api/jobs.cpp
@@ -120,7 +120,7 @@ bool AbstractJob::lockProject(const TopLevelProjectPtr &project)
// The API is not thread-safe, so we don't need a mutex here, as the API requests come in
// synchronously.
if (project->locked) {
- internalJob()->setError(tr("Cannot start a job while another one is in process."));
+ internalJob()->setError(tr("Cannot start a job while another one is in progress."));
QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection, Q_ARG(bool, false),
Q_ARG(qbs::AbstractJob *, this));
return false;
diff --git a/src/lib/corelib/api/project.cpp b/src/lib/corelib/api/project.cpp
index 1aa101717..b8706a8d6 100644
--- a/src/lib/corelib/api/project.cpp
+++ b/src/lib/corelib/api/project.cpp
@@ -91,6 +91,7 @@ static void loadPlugins(const QStringList &_pluginPaths, const Logger &logger)
qRegisterMetaType<ErrorInfo>("qbs::ErrorInfo");
qRegisterMetaType<ProcessResult>("qbs::ProcessResult");
qRegisterMetaType<InternalJob *>("Internal::InternalJob *");
+ qRegisterMetaType<AbstractJob *>("qbs::AbstractJob *");
pluginsLoaded = true;
}