[Bug 158482] New Subfolder Button in filters dialog inactive
Jonathan Marten
jjm at keelhaul.me.uk
Wed Feb 27 10:31:53 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=158482
jjm keelhaul me uk changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jjm keelhaul me uk
Status|UNCONFIRMED |NEW
everconfirmed|0 |1
------- Additional Comments From jjm keelhaul me uk 2008-02-27 11:31 -------
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