]> cloud.milkyroute.net Git - dolphin.git/commitdiff
The row-count cannot be 0 at this part of the code.
authorPeter Penz <peter.penz19@gmail.com>
Sat, 4 Sep 2010 17:01:24 +0000 (17:01 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 4 Sep 2010 17:01:24 +0000 (17:01 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1171602

src/views/dolphindetailsview.cpp

index 243debb1b9f486e1b5d8cf50ba85c2a5b203c18c..585671e4c67f6b9a8ddc1d7b55bcb7f025adf2e6 100644 (file)
@@ -754,7 +754,7 @@ void DolphinDetailsView::resizeColumns()
     if (columnWidth[KDirModel::Name] < minNameWidth) {
         columnWidth[KDirModel::Name] = minNameWidth;
 
-        if ((rowCount > 0) && (rowCount < maxRowCount)) {
+        if (rowCount < maxRowCount) {
             // Try to decrease the name column width without clipping any text
             const int nameWidth = sizeHintForColumn(DolphinModel::Name);
             if (nameWidth + requiredWidth <= viewport()->width()) {