summaryrefslogtreecommitdiffstats
path: root/application/groupview
diff options
context:
space:
mode:
Diffstat (limited to 'application/groupview')
-rw-r--r--application/groupview/InstanceDelegate.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/application/groupview/InstanceDelegate.cpp b/application/groupview/InstanceDelegate.cpp
index 359dd3cf..b88f9a8a 100644
--- a/application/groupview/InstanceDelegate.cpp
+++ b/application/groupview/InstanceDelegate.cpp
@@ -113,18 +113,21 @@ void drawProgressOverlay(QPainter *painter, const QStyleOptionViewItemV4 &option
void drawBadges(QPainter *painter, const QStyleOptionViewItemV4 &option, BaseInstance *instance)
{
QList<QString> pixmaps;
- const BaseInstance::InstanceFlags flags = instance->flags();
- if (flags & BaseInstance::VersionBrokenFlag)
+ if (instance->isRunning())
{
- pixmaps.append("broken");
+ pixmaps.append("status-running");
}
- if (flags & BaseInstance::UpdateAvailable)
+ else if (instance->hasCrashed())
{
- pixmaps.append("updateavailable");
+ pixmaps.append("status-bad");
}
- if (instance->isRunning())
+ if (instance->hasVersionBroken())
{
- pixmaps.append("status-running");
+ pixmaps.append("broken");
+ }
+ if (instance->hasUpdateAvailable())
+ {
+ pixmaps.append("updateavailable");
}
// begin easter eggs