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() {