Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. Index: kfilewidget.cpp
  2. ===================================================================
  3. --- kfilewidget.cpp (revision 1192629)
  4. +++ kfilewidget.cpp (working copy)
  5. @@ -1862,29 +1862,29 @@
  6.  
  7. // these settings are global settings; ALL instances of the file dialog
  8. // should reflect them
  9. - configGroup.config()->setForceGlobal(true);
  10. + KConfig config("kdeglobals");
  11. + KConfigGroup group(&config, configGroup.name());
  12.  
  13. KUrlComboBox *pathCombo = urlNavigator->editor();
  14. - configGroup.writePathEntry( RecentURLs, pathCombo->urls() );
  15. - //saveDialogSize( configGroup, KConfigGroup::Persistent | KConfigGroup::Global );
  16. - configGroup.writeEntry( PathComboCompletionMode, static_cast<int>(pathCombo->completionMode()) );
  17. - configGroup.writeEntry( LocationComboCompletionMode, static_cast<int>(locationEdit->completionMode()) );
  18. + group.writePathEntry( RecentURLs, pathCombo->urls() );
  19. + //saveDialogSize( group, KConfigGroup::Persistent | KConfigGroup::Global );
  20. + group.writeEntry( PathComboCompletionMode, static_cast<int>(pathCombo->completionMode()) );
  21. + group.writeEntry( LocationComboCompletionMode, static_cast<int>(locationEdit->completionMode()) );
  22.  
  23. const bool showSpeedbar = placesDock && !placesDock->isHidden();
  24. - configGroup.writeEntry( ShowSpeedbar, showSpeedbar );
  25. + group.writeEntry( ShowSpeedbar, showSpeedbar );
  26. if (showSpeedbar) {
  27. const QList<int> sizes = placesViewSplitter->sizes();
  28. Q_ASSERT( sizes.count() > 0 );
  29. - configGroup.writeEntry( SpeedbarWidth, sizes[0] );
  30. + group.writeEntry( SpeedbarWidth, sizes[0] );
  31. }
  32.  
  33. - configGroup.writeEntry( ShowBookmarks, bookmarkHandler != 0 );
  34. - configGroup.writeEntry( AutoSelectExtChecked, autoSelectExtChecked );
  35. - configGroup.writeEntry( BreadcrumbNavigation, !urlNavigator->isUrlEditable() );
  36. - configGroup.writeEntry( ShowFullPath, urlNavigator->showFullPath() );
  37. + group.writeEntry( ShowBookmarks, bookmarkHandler != 0 );
  38. + group.writeEntry( AutoSelectExtChecked, autoSelectExtChecked );
  39. + group.writeEntry( BreadcrumbNavigation, !urlNavigator->isUrlEditable() );
  40. + group.writeEntry( ShowFullPath, urlNavigator->showFullPath() );
  41.  
  42. - ops->writeConfig(configGroup);
  43. - configGroup.config()->setForceGlobal(false);
  44. + ops->writeConfig(group);
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement