mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-25 18:58:25 +02:00
Set the clock to 0 before reading application link files
0 is the default clock value, which doesn't get written to link files if it's not changed. The clock was previously uninitialised before reading link files, so it would get written with a random value if there was none before.
This commit is contained in:
parent
13f574bfb2
commit
82ac7ef44b
@ -93,6 +93,8 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, const char* linkfile)
|
|||||||
file = linkfile;
|
file = linkfile;
|
||||||
#ifdef ENABLE_CPUFREQ
|
#ifdef ENABLE_CPUFREQ
|
||||||
setClock(gmenu2x->getDefaultAppClock());
|
setClock(gmenu2x->getDefaultAppClock());
|
||||||
|
#else
|
||||||
|
setClock(0);
|
||||||
#endif
|
#endif
|
||||||
selectordir = "";
|
selectordir = "";
|
||||||
selectorfilter = "*";
|
selectorfilter = "*";
|
||||||
|
Loading…
Reference in New Issue
Block a user