Bug 76498 - Remove top folder from Files tree list, setting not saved
Summary: Remove top folder from Files tree list, setting not saved
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-01 12:46 UTC by Dennis Hansen
Modified: 2004-03-01 16:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Hansen 2004-03-01 12:46:41 UTC
Version:           3.3 Bleeding Edge (2004-02-25) (using KDE 3.2.0, compiled sources)
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.27mdk

When I RMB on a "Top folder" (one I've added myself) in the Files Tree and choose
"Remove From top" the top folder is removed, but it's back the next time I start quanta_be - the setting is not saved.

KDE 3.2
QT 3.3

My KDEHOME is .kdetest if that should be of any importance.
Comment 1 András Manţia 2004-03-01 13:05:35 UTC
Please check the .kdetest/share/config/quanta_berc is really writable. I tried 
here with a completely new KDEHOME as well as an older one, and it works. 
Temporary try to rename that quanta_berc and start Quanta again to see if you 
can still reproduce the bug or not.

Andras

Comment 2 Dennis Hansen 2004-03-01 13:24:55 UTC
Sorry no, I can not remove the Top folder no matter what I do.

The file is writeable, I've tried chmod 777 on it also, removing the file
and add/remove a new top folder did not help.

Comment 3 András Manţia 2004-03-01 15:08:08 UTC
Too bad, as I can't reproduce it... When  you started to notice the bug? Do 
you have another Quanta version there (eg. 3.2.0)? Does it happen with that 
one?

Comment 4 Dennis Hansen 2004-03-01 15:43:25 UTC
> ------- Too bad, as I can't reproduce it... When  you started to
> notice the bug? Do you have another Quanta version there (eg. 3.2.0)?
> Does it happen with that one?

Running Quanta 3.2-post-Alpha2 on KDE 3.1.4 does not have the problem.

I have just noticed this, My kDE 3.2 is new, usually I run the old  
3.2-post-Alpha on KDE 3.1.4

Sorry I know it's not much help.

For now I just have to hand edit the quanta_berc to get rid of the top 
folders I don't want listed.

Comment 5 András Manţia 2004-03-01 16:19:41 UTC
Found your bug. It happens only when you add the folder with New Top Folder, 
and not when you right click on a folder and select Add to Top. Fix will come 
in some minutes.

Comment 6 András Manţia 2004-03-01 16:20:20 UTC
CVS commit by amantia: 

Make removal of top folders added with "New Top Folder" possible. [#76498]

CCMAIL: 76498-done@bugs.kde.org


  M +1 -0      ChangeLog   1.234
  M +1 -0      treeviews/filestreeview.cpp   1.74


--- kdewebdev/quanta/ChangeLog  #1.233:1.234
@@ -34,4 +34,5 @@
         - fix opening of documentation pages with references [#70345]
         - fix creation of project when the main directory starts with a protocol name
+        - make removal of top folders added with "New Top Folder" possible [#76498]
         - various parsing fixes        
         - report bugs for "quanta" module, not for "quanta_be"        

--- kdewebdev/quanta/treeviews/filestreeview.cpp  #1.73:1.74
@@ -414,4 +414,5 @@ void FilesTreeView::slotNewTopFolder()
 {
   KURL url = KFileDialog::getExistingURL(QString::null, this, i18n("Choose Local or Remote Folder"));
+  url.adjustPath(+1);
   if (!url.isEmpty() && topURLList.findIndex(url) == -1)
   {