┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index 590e3c7d8..d5b14783b 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -157,9 +157,10 @@ bool DolphinDetailsView::event(QEvent* event)
hideColumn(DolphinModel::Tags);
}
else if (event->type() == QEvent::UpdateRequest) {
- // A wheel movement will scroll 4 items
- if (model()->rowCount())
+ // a wheel movement will scroll 4 items
+ if (model()->rowCount() > 0) {
verticalScrollBar()->setSingleStep((sizeHintForRow(0) / 3) * 4);
+ }
}
return QTreeView::event(event);