summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-17 16:32:07 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-17 16:32:07 (GMT)
commit55f164cf1b8690c19508de77c969aa235cd5f172 (patch)
tree6e3d90ef1449d1e51f53eada0b50dcc173b43caf
parent49ff86eb9fc2acabbfe70f08b0f7305cc0799551 (diff)
Disable and enable start button based on number of jobs
-rw-r--r--kstars/ekos/scheduler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kstars/ekos/scheduler.cpp b/kstars/ekos/scheduler.cpp
index 9e9de84..9e4af7d 100644
--- a/kstars/ekos/scheduler.cpp
+++ b/kstars/ekos/scheduler.cpp
@@ -578,6 +578,7 @@ void Scheduler::saveJob()
{
queueSaveAsB->setEnabled(true);
queueSaveB->setEnabled(true);
+ startB->setEnabled(true);
mDirty = true;
}
@@ -805,6 +806,8 @@ void Scheduler::removeJob()
{
queueSaveAsB->setEnabled(false);
queueSaveB->setEnabled(false);
+ startB->setEnabled(false);
+ pauseB->setEnabled(false);
if (jobUnderEdit >= 0)
resetJobEdit();