[dconf-editor] Fix a non-closing popover.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Fix a non-closing popover.
- Date: Thu, 29 Nov 2018 13:27:20 +0000 (UTC)
commit f87496834a7615bea6df1715b541ca98e3059439
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Nov 29 08:25:57 2018 +0100
Fix a non-closing popover.
editor/dconf-window.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 9836aee..53896b7 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -1681,7 +1681,9 @@ private class DConfWindow : AdaptativeWindow, AdaptativeWidget
if (headerbar.search_mode_enabled)
return;
+ headerbar.close_popovers (); // by symmetry with go_forward()
browser_view.discard_row_popover ();
+
if (current_path == "/")
return;
if (shift)
@@ -1697,7 +1699,9 @@ private class DConfWindow : AdaptativeWindow, AdaptativeWidget
string complete_path = headerbar.get_complete_path ();
+ headerbar.close_popovers ();
browser_view.discard_row_popover ();
+
if (current_path == complete_path) // TODO something?
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]