[gnome-photos/wip/rishi/unbreak-undo-delete] delete-notification: Unbreak undo
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/unbreak-undo-delete] delete-notification: Unbreak undo
- Date: Sun, 14 Mar 2021 15:39:35 +0000 (UTC)
commit ce35a6c8a862995e008719879814f7c893b0f91d
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Mar 14 16:33:30 2021 +0100
delete-notification: Unbreak undo
Clicking the "undo" button also causes the DeleteNotification widget to
be destroyed. However, the items shouldn't be deleted in that case.
Fallout from 4f70565c8112fe9f82a840d0347f74b75d3f2ca8
https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/178
src/photos-delete-notification.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/photos-delete-notification.c b/src/photos-delete-notification.c
index aad9b691..d2737eae 100644
--- a/src/photos-delete-notification.c
+++ b/src/photos-delete-notification.c
@@ -127,6 +127,9 @@ photos_delete_notification_undo_clicked (PhotosDeleteNotification *self)
photos_item_manager_unhide_item (PHOTOS_ITEM_MANAGER (self->item_mngr), item);
}
+ g_list_free_full (self->items, g_object_unref);
+ self->items = NULL;
+
photos_delete_notification_destroy (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]