diff options
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)) { |