-fix menu show min in shutdown timer

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1205 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2011-02-25 18:32:30 +00:00
parent 302ea02767
commit 036629aaaf
5 changed files with 11 additions and 11 deletions

View File

@@ -60,7 +60,7 @@ int CSleepTimerWidget::exec(CMenuTarget* parent, const std::string &actionKey)
parent->hide();
if(permanent) {
sprintf(value,"%03d", g_settings.shutdown_min);
strcpy(value,g_settings.shutdown_min);
} else {
shutdown_min = g_Timerd->getSleepTimerRemaining(); // remaining shutdown time?
sprintf(value,"%03d", shutdown_min);
@@ -93,8 +93,8 @@ int CSleepTimerWidget::exec(CMenuTarget* parent, const std::string &actionKey)
int new_val = atoi(value);
if(permanent) {
g_settings.shutdown_min = new_val;
printf("permanent sleeptimer min: %d\n", g_settings.shutdown_min);
sprintf(g_settings.shutdown_min,"%03d", new_val);
printf("permanent sleeptimer min: %s\n", g_settings.shutdown_min);
}
else if(shutdown_min != new_val) {
shutdown_min = new_val;