diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 16:13:47 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 16:13:47 +0200 |
commit | 529db49c496f4f668cec3f7c59d2d0ec78c50c9a (patch) | |
tree | b7622a54b4063f4dc735a8b4061525148377b6c9 /common/resourceaccess.cpp | |
parent | 577c2c344079c1a87d3d93be5f957e5f2d935bff (diff) | |
download | sink-529db49c496f4f668cec3f7c59d2d0ec78c50c9a.tar.gz sink-529db49c496f4f668cec3f7c59d2d0ec78c50c9a.zip |
Don't hardcode the type property.
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 364616c..e509292 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -199,6 +199,10 @@ KAsync::Job<void> ResourceAccess::Private::initializeSocket() | |||
199 | if (Sink::Test::testModeEnabled()) { | 199 | if (Sink::Test::testModeEnabled()) { |
200 | args << "--test"; | 200 | args << "--test"; |
201 | } | 201 | } |
202 | if (resourceName.isEmpty()) { | ||
203 | SinkWarning() << "No resource type given"; | ||
204 | return KAsync::error(); | ||
205 | } | ||
202 | args << resourceInstanceIdentifier << resourceName; | 206 | args << resourceInstanceIdentifier << resourceName; |
203 | qint64 pid = 0; | 207 | qint64 pid = 0; |
204 | if (QProcess::startDetached("sink_synchronizer", args, QDir::homePath(), &pid)) { | 208 | if (QProcess::startDetached("sink_synchronizer", args, QDir::homePath(), &pid)) { |