diff --git a/src/filewidgets/kfilewidget.cpp b/src/filewidgets/kfilewidget.cpp --- a/src/filewidgets/kfilewidget.cpp +++ b/src/filewidgets/kfilewidget.cpp @@ -1973,10 +1973,8 @@ const bool showSpeedbar = placesDock && !placesDock->isHidden(); tmpGroup.writeEntry(ShowSpeedbar, showSpeedbar); - if (showSpeedbar) { - const QList sizes = placesViewSplitter->sizes(); - Q_ASSERT(sizes.count() > 0); - tmpGroup.writeEntry(SpeedbarWidth, sizes[0]); + if (placesViewWidth > 0) { + tmpGroup.writeEntry(SpeedbarWidth, placesViewWidth); } tmpGroup.writeEntry(ShowBookmarks, bookmarkHandler != nullptr);