mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
settings_manager_teams: simplify hintbox calls
Origin commit data
------------------
Branch: ni/coolstream
Commit: d04cb3b9cd
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
Origin message was:
------------------
- settings_manager_teams: simplify hintbox calls
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -164,15 +164,14 @@ void CSettingsManagerTeams::doBackup()
|
|||||||
int ret = ::statfs(TDirectory.c_str(), &s);
|
int ret = ::statfs(TDirectory.c_str(), &s);
|
||||||
if(objectCounter && ret == 0 && s.f_type != 0x72b6L/* && s.f_type != 0x858458f6L*/) /*jffs2 and ramfs*/
|
if(objectCounter && ret == 0 && s.f_type != 0x72b6L/* && s.f_type != 0x858458f6L*/) /*jffs2 and ramfs*/
|
||||||
{
|
{
|
||||||
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, hintBoxContent.c_str());
|
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, hintBoxContent.c_str());
|
||||||
hintBox->paint();
|
hintBox.paint();
|
||||||
char buf[256];
|
char buf[256];
|
||||||
sprintf(buf, SYSCALLBACKUP " %s/" TARCHIVE "%s", TDirectory.c_str(), objects.c_str());
|
sprintf(buf, SYSCALLBACKUP " %s/" TARCHIVE "%s", TDirectory.c_str(), objects.c_str());
|
||||||
//printf("CSettingsManagerTeams::doBackup: %s/%s\n", TDirectory.c_str(), TARCHIVE);
|
//printf("CSettingsManagerTeams::doBackup: %s/%s\n", TDirectory.c_str(), TARCHIVE);
|
||||||
if (system(buf) != 0)
|
if (system(buf) != 0)
|
||||||
printf("CSettingsManagerTeams::Backup: failed\n");
|
printf("CSettingsManagerTeams::Backup: failed\n");
|
||||||
hintBox->hide();
|
hintBox.hide();
|
||||||
delete hintBox;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ShowMsg(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(LOCALE_SETTINGS_TEAMS_BACKUP_FAILED),CMsgBox::mbrBack, CMsgBox::mbBack, NEUTRINO_ICON_ERROR);
|
ShowMsg(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(LOCALE_SETTINGS_TEAMS_BACKUP_FAILED),CMsgBox::mbrBack, CMsgBox::mbBack, NEUTRINO_ICON_ERROR);
|
||||||
|
Reference in New Issue
Block a user