From 50c59a5ad0cf3ed17533ccbe40c3b99c2f9f2031 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 9 Jan 2015 12:41:24 +0300 Subject: [PATCH] gui/update.cpp: fix image update check, enable save u-boot menu switch Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f04e22befe6731887315e3a74cedd849685dd084 Author: [CST] Focus Date: 2015-01-09 (Fri, 09 Jan 2015) --- src/gui/update.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index a3fa24930..f5b8fa61e 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -169,6 +169,7 @@ bool CFlashUpdate::checkOnlineVersion() if (httpTool.downloadFile(url, gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME, 20)) { std::ifstream in(gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME); while (in >> url >> version >> md5 >> std::ws) { + std::getline(in, name); CFlashVersionInfo versionInfo(version); newVer = versionInfo.getVersion(); #ifdef DEBUG @@ -988,7 +989,7 @@ void CFlashExpertSetup::readMTDPart(int mtd, const std::string &fileName) sync(); } -//#define UBOOT_BIN +#define UBOOT_BIN //#define SPARE_BIN int CFlashExpertSetup::exec(CMenuTarget* parent, const std::string &actionKey)