[dconf-editor] Fix a crash.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Fix a crash.
- Date: Sat, 24 Nov 2018 11:26:37 +0000 (UTC)
commit 3b225ae93b033484df03767b2a35949e1fafa66a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Nov 23 18:37:24 2018 +0100
Fix a crash.
editor/browser-view.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/editor/browser-view.vala b/editor/browser-view.vala
index a5635dc..64fc7e7 100644
--- a/editor/browser-view.vala
+++ b/editor/browser-view.vala
@@ -709,8 +709,8 @@ private class SettingComparator : Object
{
uint16 a_place = sorted_context_id [a.context_id - ModelUtils.special_context_id_number];
uint16 b_place = sorted_context_id [b.context_id - ModelUtils.special_context_id_number];
- if (a_place == b_place)
- assert_not_reached ();
+ if (a_place == b_place) // FIXME assert_not_reached() should be good, but crash happens if opening
app on a key from a folder with
+ return 0; // multiple schemas installed (e.g. '/ca/desrt/dconf-editor/bookmarks'), and
immediately opening search
return a_place < b_place ? -1 : 1;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]