]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kfileitemmodel.cpp
Don't delay popup menus of "Create New" and "Recently Closed Tabs" toolbar buttons
[dolphin.git] / src / kitemviews / kfileitemmodel.cpp
index 231bfe077e2d12ce195f38d42f65fbc5b0a241b5..6c015db372cdb1df85995e56c3d79560cc21b97a 100644 (file)
@@ -1499,7 +1499,7 @@ int KFileItemModel::expandedParentsCountCompare(const ItemData* a, const ItemDat
     if (index > maxIndex) {
         index = maxIndex;
     }
-    while ((pathA.at(index) != QLatin1Char('/') || pathB.at(index) != QLatin1Char('/')) && index > 0) {
+    while (index > 0 && (pathA.at(index) != QLatin1Char('/') || pathB.at(index) != QLatin1Char('/'))) {
         --index;
     }