[gnome-boxes] Insert items in collection not in the view
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Insert items in collection not in the view
- Date: Thu, 9 Aug 2012 12:02:08 +0000 (UTC)
commit 5a402a32e361611dbda8ad14ee1140dabac89cd2
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Thu Aug 2 20:02:39 2012 +0200
Insert items in collection not in the view
The view might show a filtered or different version.
https://bugzilla.gnome.org/show_bug.cgi?id=681089
src/app.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 7030c00..0fe8d38 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -578,12 +578,12 @@ private class Boxes.App: Boxes.UI {
"%u boxes have been deleted",
num_selected).printf (num_selected);
foreach (var item in selected_items)
- view.remove_item (item);
+ collection.remove_item (item);
Notificationbar.OKFunc undo = () => {
debug ("Box deletion cancelled by user, re-adding to view");
foreach (var selected in selected_items) {
- view.add_item (selected);
+ collection.add_item (selected);
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]