summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp
index b662ff7..39a9c6e 100644
--- a/noncore/net/opietooth/applet/bluezapplet.cpp
+++ b/noncore/net/opietooth/applet/bluezapplet.cpp
@@ -63,4 +63,5 @@ namespace OpieTooth {
int BluezApplet::checkBluezStatus() {
+ if (btDevice) {
if (btDevice->isLoaded() ) {
return 1;
@@ -68,4 +69,7 @@ namespace OpieTooth {
return 0;
}
+ } else {
+ return 0;
+ }
}