diff --git a/containments/desktop/plugins/folder/positioner.cpp b/containments/desktop/plugins/folder/positioner.cpp --- a/containments/desktop/plugins/folder/positioner.cpp +++ b/containments/desktop/plugins/folder/positioner.cpp @@ -254,11 +254,7 @@ } } - if (m_sourceToProxy.contains(sourceIndex)) { - return m_sourceToProxy.value(sourceIndex); - } - - return -1; + return m_sourceToProxy.value(sourceIndex, -1); } void Positioner::setRangeSelected(int anchor, int to)