summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2016-10-16 13:03:48 +0300
committerJasem Mutlaq <[email protected]>2016-10-16 13:03:48 +0300
commit42391b18110ff8aefdc2dd2589f701cf596f4e14 (patch)
tree323ee9498f48230e2310708846db064b62544d9c
parenta4f5849ff2a0378818307896c4babfbc7e582724 (diff)
If there is no focuser still then return
-rw-r--r--kstars/ekos/focus.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kstars/ekos/focus.cpp b/kstars/ekos/focus.cpp
index eea5f29..0ab3d51 100644
--- a/kstars/ekos/focus.cpp
+++ b/kstars/ekos/focus.cpp
@@ -549,6 +549,9 @@ void Focus::checkFocuser(int FocuserNum)
if (FocuserNum == -1)
FocuserNum = focuserCombo->currentIndex();
+ if (FocuserNum == -1)
+ return;
+
if (FocuserNum <= Focusers.count())
currentFocuser = Focusers.at(FocuserNum);