[Bug 128796] Creating Folders in 'Message Filters" not possible under "Local Folders"

Jonathan Marten jjm at keelhaul.me.uk
Wed Feb 27 10:37:09 GMT 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=128796         
jjm keelhaul me uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jjm keelhaul me uk



------- Additional Comments From jjm keelhaul me uk  2008-02-27 11:37 -------
Copied from 158482:

Confirmed in KMail 1.9.9 (KDE 3.5.9) and trunk. 
 
The problem is that the "New Subfolder" button is disabled in KMFolderSelDlg::slotUpdateBtnStatus() by: 
 
   enableButton( User1, folder() && 
                 ( !folder()->noContent() && !folder()->noChildren() ) ); 
 
For the root of the folder tree, folder() is NULL and so the button is disabled. 
 
There isn't a simple fix of just enabling the button and accepting NULL as meaning "root", because the required parent folder is passed down to KMFolderTree::addChildFolder().  There, a folder of NULL means "current selected item", which would create the new folder under the selected folder in the *main folder tree* (not the tree displayed in the dialogue). 
 
May need to add an additional parameter to addChildFolder() to specify "ignore what is selected in the GUI".



More information about the Kdepim-bugs mailing list