From ccf94c2af4a2c5e30e62628e7cc412949d9af12a Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 13 Feb 2019 00:04:13 +0100 Subject: Fix issue on priority --- node/sortresult.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'node/sortresult.cpp') diff --git a/node/sortresult.cpp b/node/sortresult.cpp index 76fae2b..89043fa 100644 --- a/node/sortresult.cpp +++ b/node/sortresult.cpp @@ -135,11 +135,10 @@ QString SortResultNode::toString(bool wl) const qint64 SortResultNode::getPriority() const { qint64 priority= 0; - if(nullptr != m_nextNode) + if(nullptr != m_previousNode) { - priority= m_nextNode->getPriority(); + priority= m_previousNode->getPriority(); } - return priority; } ExecutionNode* SortResultNode::getCopy() const -- cgit v1.2.3-70-g09d2