Skip to content

Commit

Permalink
Call StatusView::updateSchedulerState as needed
Browse files Browse the repository at this point in the history
Fixes views not updating their status when the scheduler went offline,
for example
  • Loading branch information
krf committed Oct 26, 2014
1 parent dafecd5 commit 162e5d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/statusview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ void StatusView::setMonitor(Monitor* monitor)
disconnect(m_monitor.data(), SIGNAL(jobUpdated(Job)), this, SLOT(update(Job)));
disconnect(m_monitor.data(), SIGNAL(nodeRemoved(HostId)), this, SLOT(removeNode(HostId)));
disconnect(m_monitor.data(), SIGNAL(nodeUpdated(HostId)), this, SLOT(checkNode(HostId)));
disconnect(m_monitor.data(), SIGNAL(schedulerStateChanged(bool)), this, SLOT(updateSchedulerState(bool)));
}

m_monitor = monitor;
Expand All @@ -68,6 +69,7 @@ void StatusView::setMonitor(Monitor* monitor)
connect(m_monitor.data(), SIGNAL(jobUpdated(Job)), this, SLOT(update(Job)));
connect(m_monitor.data(), SIGNAL(nodeRemoved(HostId)), this, SLOT(removeNode(HostId)));
connect(m_monitor.data(), SIGNAL(nodeUpdated(HostId)), this, SLOT(checkNode(HostId)));
connect(m_monitor.data(), SIGNAL(schedulerStateChanged(bool)), this, SLOT(updateSchedulerState(bool)));

if (options().testFlag(RememberJobsOption)) {
foreach (const Job& job, m_monitor->jobHistory()) {
Expand Down

0 comments on commit 162e5d1

Please sign in to comment.