summaryrefslogtreecommitdiff
path: root/src/resource.cpp
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-01-13 08:47:08 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-01-13 08:47:08 +0200
commitf15c9a9aaacfde28fe1275ec337f0ad96abe8851 (patch)
tree38e46dbd59465e25b758fc4bdb3ec241dd37fceb /src/resource.cpp
parent34cc1e61a9f32d371470934f0177b4810b67a873 (diff)
libplayback tests: testConnectToServer()
Diffstat (limited to 'src/resource.cpp')
-rw-r--r--src/resource.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resource.cpp b/src/resource.cpp
index 76ef720..bc03847 100644
--- a/src/resource.cpp
+++ b/src/resource.cpp
@@ -13,12 +13,15 @@ Resource::~Resource()
bool Resource::initialize(ResourceLibrary *library)
{
+ qDebug("Resource::initialize");
resourceLibrary = library;
return resourceLibrary->initialize();
}
bool Resource::connectToServer()
{
+ if(resourceLibrary == NULL)
+ return false;
return resourceLibrary->connectToServer();
}