Diffstat (limited to 'noncore/net/opietooth/applet/bluezapplet.cpp') (more/less context) (show whitespace changes)
-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 @@ -61,13 +61,17 @@ namespace OpieTooth { BluezApplet::~BluezApplet() { } int BluezApplet::checkBluezStatus() { + if (btDevice) { if (btDevice->isLoaded() ) { return 1; } else { return 0; } + } else { + return 0; + } } int BluezApplet::setBluezStatus(int c) { |