summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-22 15:22:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-22 15:22:52 +0100
commitdb246232e898e9c4b351e80cede0dbea271ca8b8 (patch)
treeb1d560b1b06511dd4ef3efd2ad272d6692fcca81
parent0d75fa2f92e41dce578aef99579f21bd3f6d20fa (diff)
don't bind shortcuts unless tracker running
-rw-r--r--facetracknoir/shortcuts.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/facetracknoir/shortcuts.cpp b/facetracknoir/shortcuts.cpp
index 09663a0f..6a972aa3 100644
--- a/facetracknoir/shortcuts.cpp
+++ b/facetracknoir/shortcuts.cpp
@@ -36,7 +36,8 @@ KeyboardShortcutDialog::~KeyboardShortcutDialog() {
void KeyboardShortcutDialog::doOK() {
save();
this->close();
- mainApp->bindKeyboardShortcuts();
+ if (mainApp->tracker)
+ mainApp->bindKeyboardShortcuts();
}
void KeyboardShortcutDialog::showEvent ( QShowEvent * ) {