]> cloud.milkyroute.net Git - dolphin.git/commitdiff
In rare circumstances (a very narrow viewport is a necessary, but not sufficient...
authorSimon Paul St James <kdedevel@etotheipiplusone.com>
Fri, 23 Jan 2009 18:55:08 +0000 (18:55 +0000)
committerSimon Paul St James <kdedevel@etotheipiplusone.com>
Fri, 23 Jan 2009 18:55:08 +0000 (18:55 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=915781

src/dolphindetailsview.cpp

index acfff6a65c2f49ed4f91e73607c82614a37415a2..21737c8400e001605b3da5f4ae1307f0b8186579 100644 (file)
@@ -900,7 +900,7 @@ void DolphinDetailsView::resizeColumns()
         // reasons the exact necessary width for full visible names is
         // only checked for up to 200 items:
         const int rowCount = model()->rowCount();
-        if (rowCount < 200) {
+        if (rowCount > 0 && rowCount < 200) {
             const int nameWidth = sizeHintForColumn(DolphinModel::Name);
             if (nameWidth + requiredWidth <= viewport()->width()) {
                 columnWidth[KDirModel::Name] = viewport()->width() - requiredWidth;