Skip to content

Commit

Permalink
only parse custom entries when main config is ok
Browse files Browse the repository at this point in the history
  • Loading branch information
maz-1 committed Aug 30, 2018
1 parent f7c9281 commit 2f7de2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kcm_grub2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 2f7de2c

Please sign in to comment.