Summary: | [Patch] 'Delete Address Book' button cannot be added from the 'Configure Toolbars' dialogue. | ||
---|---|---|---|
Product: | [Applications] kaddressbook | Reporter: | Sabine Faure <sabine> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | faure, tokoe |
Priority: | NOR | Keywords: | investigated |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | proposed fix |
Description
Sabine Faure
2009-09-14 00:01:12 UTC
I retested this today and the Search field does not disappear anymore but the 'Delete Address Book' button is still not added in the toolbar. The same thing happens when trying to add 'Address Book Properties'. Whereas if you add any other action (ex:Copy Address Book Folder) then it works and a button is added to the Main toolbar in KAB. Trunk, Svn Rev1033074 In fact those two buttons('Delete Address Book' and 'Address Book Properties') are added but not displayed when clicking on 'Apply'. To see them, click on 'Ok' and select an Addressbook (ex: Personal Contacts). the two buttons appear next to the search field in the Main toolbar. If you click on 'Contacts' (=the Kolab resource) then they are no longer displayed until you select an addressbook again. Trunk, Svn Rev 1033074 Created attachment 37480 [details]
proposed fix
Tobias: this is because of the use of QAction::setVisible in standardcontactactionmanager.cpp. It makes the actions appear and disappear, which is quite unexpected I think, it would be better to just enable/disable them. In fact the attached patch works ok for me.
I guess the only difference is that the Edit menu looks a bit more "crowded" because it contains "Delete Addressbook" at all times. But I think GUI styleguides say that it's better to disable actions than to have them disappear altogether.
SVN commit 1034746 by tokoe: Disable actions instead of hiding them fixes some problems with actions that can not be added to a toolbar. Thanks to dfaure for the patch! BUG: 207297 M +6 -6 standardcontactactionmanager.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1034746 It is corrected now. It is possible to add or remove any of the toolbar buttons now. Trunk, Svn Rev 1039367 |