diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-01-13 08:47:08 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-01-13 08:47:08 +0200 |
commit | f15c9a9aaacfde28fe1275ec337f0ad96abe8851 (patch) | |
tree | 38e46dbd59465e25b758fc4bdb3ec241dd37fceb /src/resource.cpp | |
parent | 34cc1e61a9f32d371470934f0177b4810b67a873 (diff) |
libplayback tests: testConnectToServer()
Diffstat (limited to 'src/resource.cpp')
-rw-r--r-- | src/resource.cpp | 3 |
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(); } |