[libgd/wip/rishi/main-box: 2/7] main-view: Forget the last non-range selection when leaving the mode
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/rishi/main-box: 2/7] main-view: Forget the last non-range selection when leaving the mode
- Date: Sun, 27 Nov 2016 10:13:08 +0000 (UTC)
commit 739b043100ca7deae64aacbcc38df16a6c296ff4
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Nov 26 18:48:17 2016 +0100
main-view: Forget the last non-range selection when leaving the mode
Fall out from b82e4c3722f4e83b429d9b72a9a20172fe3a7cd9
https://bugzilla.gnome.org/show_bug.cgi?id=775153
libgd/gd-main-view.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libgd/gd-main-view.c b/libgd/gd-main-view.c
index fe42217..7aca51a 100644
--- a/libgd/gd-main-view.c
+++ b/libgd/gd-main-view.c
@@ -1026,9 +1026,12 @@ gd_main_view_apply_selection_mode (GdMainView *self)
gd_main_view_generic_set_selection_mode (generic, priv->selection_mode);
- if (!priv->selection_mode &&
- priv->model != NULL)
- gd_main_view_unselect_all (self);
+ if (!priv->selection_mode)
+ {
+ g_clear_pointer (&priv->last_selected_id, g_free);
+ if (priv->model != NULL)
+ gd_main_view_unselect_all (self);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]