From 2f7de2ce74e8f92107c26efdfad90d9cdbcb9a06 Mon Sep 17 00:00:00 2001 From: maz-1 Date: Thu, 30 Aug 2018 22:57:57 +0800 Subject: [PATCH] only parse custom entries when main config is ok --- src/kcm_grub2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kcm_grub2.cpp b/src/kcm_grub2.cpp index c1980ef..9167f6b 100644 --- a/src/kcm_grub2.cpp +++ b/src/kcm_grub2.cpp @@ -1353,7 +1353,8 @@ void KCMGRUB2::readEntries() m_entries.clear(); parseEntries(fileContents, true); - parseEntries(fileContentsCustom, false); + if (!m_entries.isEmpty()) + parseEntries(fileContentsCustom, false); } void KCMGRUB2::readSettings() {