Bug 111926 - ToolBar settings are not reloaded
Summary: ToolBar settings are not reloaded
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 2.4.1
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-02 12:25 UTC by Massimo Costa
Modified: 2006-11-05 20:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Costa 2005-09-02 12:25:02 UTC
Version:           2.4.1 (using KDE KDE 3.4.2)
Installed from:    Slackware Packages
Compiler:          gcc version 3.3.6
OS:                Linux (i686) release 2.4.26

I change some ToolBar settings (ie. Text position) and close Kate.
In $HOME/.kde/share/config/katerc I found

[Kate Main Window Toolbar mainToolBar]
IconText=IconTextRight

When re-open Kate the settings are lost and in the katerc the previous line are lost.
Comment 1 Bram Schoenmakers 2005-09-17 15:38:08 UTC
This is still present in KDE 3.5 branch. Moreover, the sidebar status (hidden or shown) is not stored either, probably it's the same bug as with the toolbars.
Comment 2 Anne-Marie Mahfouf 2005-09-17 15:41:50 UTC
Confirmed as well on kde svn 3.5 branch 16 September. Toolbar status comes back to default as well as sidebar status.
Comment 3 Christoph Cullmann 2005-09-17 16:27:03 UTC
try turn on the "save window config" in the session config page, should be default on I guess, will fix that
Comment 4 Christoph Cullmann 2005-09-17 16:38:46 UTC
SVN commit 461397 by cullmann:

more sane default
BUG: 111926


 M  +1 -1      kateconfigdialog.cpp  
 M  +1 -1      katesession.cpp  


--- branches/KDE/3.5/kdebase/kate/app/kateconfigdialog.cpp #461396:461397
@@ -185,7 +185,7 @@
   cb_restoreVC = new QCheckBox( bgStartup );
   cb_restoreVC->setText(i18n("Include &window configuration"));
   config->setGroup("General");
-  cb_restoreVC->setChecked( config->readBoolEntry("Restore Window Configuration", false) );
+  cb_restoreVC->setChecked( config->readBoolEntry("Restore Window Configuration", true) );
   QWhatsThis::add(cb_restoreVC, i18n(
         "Check this if you want all your views and frames restored each time you open Kate"));
   connect( cb_restoreVC, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
--- branches/KDE/3.5/kdebase/kate/app/katesession.cpp #461396:461397
@@ -284,7 +284,7 @@
       KConfig *c = KateApp::self()->config();
       c->setGroup("General");
 
-      if (c->readBoolEntry("Restore Window Configuration", false))
+      if (c->readBoolEntry("Restore Window Configuration", true))
       {
         sc->setGroup ("Open MainWindows");
         unsigned int wCount = sc->readUnsignedNumEntry("Count", 1);