-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.cpp | 4 |
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 @@ -64,2 +64,3 @@ namespace OpieTooth { int BluezApplet::checkBluezStatus() { + if (btDevice) { if (btDevice->isLoaded() ) { @@ -69,2 +70,5 @@ namespace OpieTooth { } + } else { + return 0; + } } |