take care to set a result
This commit is contained in:
parent
fbfc9e91e9
commit
ba985fcda5
@ -71,7 +71,6 @@ QVariantHash StorageJob::data() const
|
|||||||
return m_data;
|
return m_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString StorageJob::clientName() const
|
QString StorageJob::clientName() const
|
||||||
{
|
{
|
||||||
return m_clientName;
|
return m_clientName;
|
||||||
@ -80,7 +79,6 @@ QString StorageJob::clientName() const
|
|||||||
|
|
||||||
void StorageJob::start()
|
void StorageJob::start()
|
||||||
{
|
{
|
||||||
|
|
||||||
//FIXME: QHASH
|
//FIXME: QHASH
|
||||||
QMap<QString, QVariant> params = parameters();
|
QMap<QString, QVariant> params = parameters();
|
||||||
|
|
||||||
@ -89,7 +87,6 @@ void StorageJob::start()
|
|||||||
valueGroup = "default";
|
valueGroup = "default";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (operationName() == "save") {
|
if (operationName() == "save") {
|
||||||
QMetaObject::invokeMethod(Plasma::StorageThread::self(), "save", Qt::QueuedConnection, Q_ARG(StorageJob *, this), Q_ARG(const QVariantMap&, params));
|
QMetaObject::invokeMethod(Plasma::StorageThread::self(), "save", Qt::QueuedConnection, Q_ARG(StorageJob *, this), Q_ARG(const QVariantMap&, params));
|
||||||
} else if (operationName() == "retrieve") {
|
} else if (operationName() == "retrieve") {
|
||||||
@ -100,6 +97,7 @@ void StorageJob::start()
|
|||||||
QMetaObject::invokeMethod(Plasma::StorageThread::self(), "expire", Qt::QueuedConnection, Q_ARG(StorageJob *, this), Q_ARG(const QVariantMap&, params));
|
QMetaObject::invokeMethod(Plasma::StorageThread::self(), "expire", Qt::QueuedConnection, Q_ARG(StorageJob *, this), Q_ARG(const QVariantMap&, params));
|
||||||
} else {
|
} else {
|
||||||
setError(true);
|
setError(true);
|
||||||
|
setResult(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user