diff --git a/src/gui/quicklinks.js b/src/gui/quicklinks.js
index bc929d197958763de14da316af91c59ad7cfae25..0ca0a49f59eb7f86dd0033a2b8a1beecd395e6c8 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]);
 			}
 		}