Summary: | Unable to edit lyrics if lyrics currently contain no text | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Christian (Fuchs) <kde> |
Component: | Context View/Lyrics | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | lfranchi, simon.esneault, valorie.zimmerman |
Priority: | NOR | Keywords: | regression |
Version: | 2.4-GIT | ||
Target Milestone: | 2.4.1 | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.4.1 | |
Sentry Crash Report: |
Description
Christian (Fuchs)
2011-02-20 13:21:47 UTC
Indeed, this doesn't work anymore and did work in 2.4.0 This is now semi-fixed in current git. The lyrics editor does expand and you are able to write text, however, the "save" icon is disabled and therefore you are still not able to save them. Thanks for the effort and thanks in advance for fixing this. Kind regards, Christian Hi, the error is in LyricsAppletPrivate::determineActionIconsState() ... 127 closeIcon->action()->setEnabled( showBrowser & isEditing ); 128 saveIcon->action()->setEnabled( showBrowser & isEditing ); ... of LyricsApplet.cpp. showBrowser is set to false if the song contains no lyrics, therefore the above logical expression will return false and the save and cancel buttons are disabled. So either showBrowser has to be set to true in this case, or this expression needs to be changed. Is this check really needed, even? Is it possible to be in isEditing state without showing the browser? Thanks in advance, kind regards Christian One small bit of information to add to the above, in a git-build from today: If there is any text in the lyrics box, even "Lyrics not found", one can successfully edit. If the box is blank, the edit screen appears, but the save icon is grayed out, and Amarok doesn't see an attempted click. Git commit 0d39ac5cfb4ce5445f780a18c9193a1d05a2f286 by Rick W. Chen. Committed on 19/03/2011 at 03:39. Pushed by rickc into branch 'master'. Make lyrics editable when there's no currently no text BUG: 266722 M +2 -2 src/context/applets/lyrics/LyricsApplet.cpp http://commits.kde.org/amarok/0d39ac5cfb4ce5445f780a18c9193a1d05a2f286 |