From 2a3afb2f987ef5648814154b39e5ed004663c4b9 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 4 Oct 2014 19:24:13 +0200 Subject: [PATCH] COPKGManager: use plausible message title Here we have errors, so we should use plausible titles for message box Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/35345e2c7ec5da5102072249deac33ca9d3498b1 Author: Thilo Graf Date: 2014-10-04 (Sat, 04 Oct 2014) --- src/gui/opkg_manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index ea54f08ff..7b8a0bb15 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -140,7 +140,7 @@ int COPKGManager::exec(CMenuTarget* parent, const std::string &actionKey) std::string loc = g_Locale->getText(LOCALE_OPKG_FAILURE_UPGRADE); char rs[strlen(loc.c_str()) + 20]; snprintf(rs, sizeof(rs), loc.c_str(), r); - DisplayInfoMessage(rs); + DisplayErrorMessage(rs); } else installed = true; refreshMenu(); @@ -166,7 +166,7 @@ int COPKGManager::exec(CMenuTarget* parent, const std::string &actionKey) std::string err = g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL); char rs[strlen(err.c_str()) + 20]; snprintf(rs, sizeof(rs), err.c_str(), r); - DisplayInfoMessage(rs); + DisplayErrorMessage(rs); } else installed = true; refreshMenu(); @@ -268,7 +268,7 @@ int COPKGManager::showMenu() std::string loc = g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE); char rs[strlen(loc.c_str()) + 20]; snprintf(rs, sizeof(rs), loc.c_str(), r); - DisplayInfoMessage(rs); + DisplayErrorMessage(rs); } getPkgData(OM_LIST); @@ -357,7 +357,7 @@ void COPKGManager::getPkgData(const int pkg_content_id) FILE *f = popen(pkg_types[pkg_content_id].c_str(), "r"); if (!f) { - DisplayInfoMessage("Command failed"); + DisplayErrorMessage("Command failed"); return; }