From c514c877ae8f6fe7f35d2a2111ec8ba96704a437 Mon Sep 17 00:00:00 2001
From: Arkerthan <arkerthan@gmail.com>
Date: Wed, 20 May 2020 12:29:08 +0200
Subject: [PATCH] fix filterPassages handling categories like passage names

---
 src/gui/quicklinks.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/gui/quicklinks.js b/src/gui/quicklinks.js
index bc929d19795..0ca0a49f59e 100644
--- a/src/gui/quicklinks.js
+++ b/src/gui/quicklinks.js
@@ -483,10 +483,11 @@ App.UI.quickMenu = (function() {
 	function filterPassages(passages, layout) {
 		for (const category in layout) {
 			const index = passages.indexOf(category);
-			if (index > -1) {
-				passages.splice(index, 1);
-			}
-			if (layout[category] !== true) {
+			if (layout[category] === true) {
+				if (index > -1) {
+					passages.splice(index, 1);
+				}
+			} else {
 				filterPassages(passages, layout[category]);
 			}
 		}
-- 
GitLab