Theme Editor: Default theme font is now correctly loaded

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27321 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-07-06 19:32:12 +00:00
parent 91d6fa7e1b
commit 120f3e1c10

View file

@ -73,7 +73,13 @@ RBScreen::RBScreen(const RBRenderInfo& info, bool remote,
} }
} }
fonts.insert(0, new RBFont("Nothin'")); fonts.insert(0, new RBFont("Default"));
QString defaultFont = settings->value("font", "");
if(defaultFont != "")
{
defaultFont.replace("/.rockbox", settings->value("themebase", ""));
fonts.insert(1, new RBFont(defaultFont));
}
if(parent == 0) if(parent == 0)
{ {