From dde9c866786c9a080c346ae8417c0f73b8e8e171 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 21 Jan 2016 21:38:27 +0100 Subject: Scroll the item into view when selecting programatically --- src/vsession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vsession.cpp') diff --git a/src/vsession.cpp b/src/vsession.cpp index f0384a0..991a117 100644 --- a/src/vsession.cpp +++ b/src/vsession.cpp @@ -227,10 +227,10 @@ bool VSession::isValid() const { int VSession::priority() const { int prio = getAttribute("priority").toInt(); - if (g_templateHandling == TEMPLATES_BUMP) { + if (g_templateHandling == TEMPLATES_BUMP && isTemplate()) { prio -= 500; } - if (g_forLocationHandling == LOCATION_BUMP) { + if (g_forLocationHandling != LOCATION_IGNORE && isForLocation()) { prio -= 1000; } return prio; -- cgit v1.2.3-55-g7522