[shotwell/wip/phako/configure-sidebar: 254/254] wip
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/phako/configure-sidebar: 254/254] wip
- Date: Sat, 25 May 2019 17:49:29 +0000 (UTC)
commit e4b2e38a1a46df262e6d175bf09a571d9ebbb834
Author: Jens Georg <mail jensge org>
Date: Sat May 25 19:48:08 2019 +0200
wip
src/library/LibraryWindow.vala | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala
index e48fe37b..bca8c137 100644
--- a/src/library/LibraryWindow.vala
+++ b/src/library/LibraryWindow.vala
@@ -1047,6 +1047,9 @@ public class LibraryWindow : AppWindow {
}
private void remove_from_stack(Page page) {
+ if (stack.get_children().find(page) == null)
+ return;
+
stack.remove(page);
// need to show_all() after pages are added and removed
@@ -1417,7 +1420,7 @@ public class LibraryWindow : AppWindow {
remove_from_stack(page);
bool removed = page_map.unset(page);
- assert(removed);
+ //assert(removed);
}
private void on_sidebar_entry_selected(Sidebar.SelectableEntry selectable) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]