After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761988 - Music crashes when click on undo button.
Music crashes when click on undo button.
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
3.16.x
Other All
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2016-02-13 10:30 UTC by Prashant Tyagi
Modified: 2016-03-14 20:17 UTC
See Also:
GNOME target: 3.20
GNOME version: ---


Attachments
A patch to fix a problem (3.04 KB, patch)
2016-02-14 10:41 UTC, Prashant Tyagi
needs-work Details | Review

Description Prashant Tyagi 2016-02-13 10:30:59 UTC
When the temporary playlist is deleted, then undo notification pops up.if 
you change your view to something else other then playlists like songs, artist etc
and then clicked on undo button then gnome-music crashed given error on terminal.
Comment 1 Prashant Tyagi 2016-02-14 10:41:37 UTC
Created attachment 321104 [details] [review]
A patch to fix a problem

also to show one undo notification at a time feature is included in this patch.
Comment 2 Felipe Borges 2016-02-18 15:21:32 UTC
Personally I think that changing to another view should instead destroy the notification.

Allan Day, what do you think about it?
Comment 3 Allan Day 2016-02-18 16:03:49 UTC
(In reply to Felipe Borges from comment #2)
> Personally I think that changing to another view should instead destroy the
> notification.
> 
> Allan Day, what do you think about it?

I'd probably keep the notification around while changing views - it will help to avoid errors by keeping the undo option around.
Comment 4 Matthias Clasen 2016-02-18 23:12:29 UTC
putting crashes on the target list for now
Comment 5 Matthias Clasen 2016-02-24 20:51:06 UTC
so, is the patch ok then ?
Comment 6 Prashant Tyagi 2016-02-25 06:38:53 UTC
actually this patch will only have meaning when patch on https://bugzilla.gnome.org/show_bug.cgi?id=744831 will be reviewed,beacuse
if we allow one notification at a time then only i have to change a deletion index
from locally to globally in patch of bug 744831 to solve this bug.
Comment 7 Matthias Clasen 2016-03-01 23:03:12 UTC
Anybody around here wo could review the two patches ? Fixing the crash would be nice
Comment 8 Felipe Borges 2016-03-02 09:40:36 UTC
Review of attachment 321104 [details] [review]:

This patch introduces a different bug. When you delete two playlists in a row and undo the last operation, it restores the previous one, not the last.
Comment 9 Matthias Clasen 2016-03-14 10:28:23 UTC
Will we get a fix for this for 3.20 ?
Comment 10 Felipe Borges 2016-03-14 20:17:16 UTC
This issue was fixed by the patch attached to https://bugzilla.gnome.org/show_bug.cgi?id=744831 which is on master at commit 76a6e8f109807ea204cddf623a1eaf523187aa12