aboutsummaryrefslogtreecommitdiffstats
path: root/src/bench/host.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench/host.cpp')
-rw-r--r--src/bench/host.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bench/host.cpp b/src/bench/host.cpp
index fc54513..27aad11 100644
--- a/src/bench/host.cpp
+++ b/src/bench/host.cpp
@@ -144,6 +144,8 @@ void Host::setOnline(bool arg)
if (m_online != arg) {
m_online = arg;
emit onlineChanged(arg);
+ if (m_type == AutoDiscovery)
+ emit availableChanged(arg);
}
}
@@ -191,6 +193,11 @@ bool Host::online() const
return m_online;
}
+bool Host::available() const
+{
+ return m_type == Manual || m_online;
+}
+
bool Host::followTreeSelection() const
{
return m_followTreeSelection;