Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfilewidget.cpp
Show First 20 Lines • Show All 1967 Lines • ▼ Show 20 Line(s) | 1960 | { | |||
---|---|---|---|---|---|
1968 | 1968 | | |||
1969 | KUrlComboBox *pathCombo = urlNavigator->editor(); | 1969 | KUrlComboBox *pathCombo = urlNavigator->editor(); | ||
1970 | //saveDialogSize( tmpGroup, KConfigGroup::Persistent | KConfigGroup::Global ); | 1970 | //saveDialogSize( tmpGroup, KConfigGroup::Persistent | KConfigGroup::Global ); | ||
1971 | tmpGroup.writeEntry(PathComboCompletionMode, static_cast<int>(pathCombo->completionMode())); | 1971 | tmpGroup.writeEntry(PathComboCompletionMode, static_cast<int>(pathCombo->completionMode())); | ||
1972 | tmpGroup.writeEntry(LocationComboCompletionMode, static_cast<int>(locationEdit->completionMode())); | 1972 | tmpGroup.writeEntry(LocationComboCompletionMode, static_cast<int>(locationEdit->completionMode())); | ||
1973 | 1973 | | |||
1974 | const bool showSpeedbar = placesDock && !placesDock->isHidden(); | 1974 | const bool showSpeedbar = placesDock && !placesDock->isHidden(); | ||
1975 | tmpGroup.writeEntry(ShowSpeedbar, showSpeedbar); | 1975 | tmpGroup.writeEntry(ShowSpeedbar, showSpeedbar); | ||
1976 | if (showSpeedbar) { | 1976 | if (placesViewWidth > 0) { | ||
1977 | const QList<int> sizes = placesViewSplitter->sizes(); | 1977 | tmpGroup.writeEntry(SpeedbarWidth, placesViewWidth); | ||
1978 | Q_ASSERT(sizes.count() > 0); | | |||
1979 | tmpGroup.writeEntry(SpeedbarWidth, sizes[0]); | | |||
1980 | } | 1978 | } | ||
1981 | 1979 | | |||
1982 | tmpGroup.writeEntry(ShowBookmarks, bookmarkHandler != nullptr); | 1980 | tmpGroup.writeEntry(ShowBookmarks, bookmarkHandler != nullptr); | ||
1983 | tmpGroup.writeEntry(AutoSelectExtChecked, autoSelectExtChecked); | 1981 | tmpGroup.writeEntry(AutoSelectExtChecked, autoSelectExtChecked); | ||
1984 | tmpGroup.writeEntry(BreadcrumbNavigation, !urlNavigator->isUrlEditable()); | 1982 | tmpGroup.writeEntry(BreadcrumbNavigation, !urlNavigator->isUrlEditable()); | ||
1985 | tmpGroup.writeEntry(ShowFullPath, urlNavigator->showFullPath()); | 1983 | tmpGroup.writeEntry(ShowFullPath, urlNavigator->showFullPath()); | ||
1986 | 1984 | | |||
1987 | ops->writeConfig(tmpGroup); | 1985 | ops->writeConfig(tmpGroup); | ||
▲ Show 20 Lines • Show All 892 Lines • Show Last 20 Lines |