From ac0d529cdccadc046edabab40adf2ef34f1d6f10 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 15 Dec 2017 23:20:54 +0100 Subject: [PATCH] settings_manager: remove NI code around backup_sh Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/533302b8c1308e2e630391cc44a5a5f7e78e4907 Author: vanhofen Date: 2017-12-15 (Fri, 15 Dec 2017) Origin message was: ------------------ - settings_manager: remove NI code around backup_sh ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/settings_manager.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/gui/settings_manager.cpp b/src/gui/settings_manager.cpp index ee4c74168..9c11faa88 100644 --- a/src/gui/settings_manager.cpp +++ b/src/gui/settings_manager.cpp @@ -117,17 +117,11 @@ int CSettingsManager::exec(CMenuTarget* parent, const std::string &actionKey) //NI CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_SETTINGS_BACKUP)); hintBox->paint(); - std::string fname = (std::string)"/bin/backup.sh " + fileBrowser.getSelectedFile()->Name; - printf("backup: executing [%s]\n", fname.c_str()); - my_system(2, "/bin/backup.sh", fileBrowser.getSelectedFile()->Name.c_str()); + const char backup_sh[] = "/bin/backup.sh"; + printf("backup: executing [%s %s]\n", backup_sh, fileBrowser.getSelectedFile()->Name.c_str()); + my_system(2, backup_sh, fileBrowser.getSelectedFile()->Name.c_str()); hintBox->hide(); delete hintBox; -//NI -#if 0 - const char backup_sh[] = "/bin/backup.sh"; - printf("backup: executing [%s %s]\n",backup_sh, fileBrowser.getSelectedFile()->Name.c_str()); - my_system(2, backup_sh, fileBrowser.getSelectedFile()->Name.c_str());*/ -#endif } else ShowMsg(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(LOCALE_SETTINGS_BACKUP_FAILED),CMsgBox::mbrBack, CMsgBox::mbBack, NEUTRINO_ICON_ERROR);