From 6cacb1191590223af6afab5c13acc3664b72e8e3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 29 Mar 2016 16:10:31 +0200 Subject: Feature: Show warning for 64bit VMs if no VT-x available --- src/sessiontreemodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sessiontreemodel.cpp') diff --git a/src/sessiontreemodel.cpp b/src/sessiontreemodel.cpp index d77555f..08b43e4 100644 --- a/src/sessiontreemodel.cpp +++ b/src/sessiontreemodel.cpp @@ -53,9 +53,11 @@ QVariant SessionTreeModel::data(const QModelIndex &index, int role) const { return s->shortDescription(); if (role == Qt::ToolTipRole) return s->description(); + if (role == Qt::BackgroundRole) + return s->backgroundRole(); if (role == Qt::DecorationRole) { if (index.column() == 0) { // TODO: is this line needed? - return s->icon(); + return s->icon(); } } } else if (role == Qt::DisplayRole) { -- cgit v1.2.3-55-g7522