summaryrefslogtreecommitdiffstats
path: root/gui/twmsg.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-12-21 05:50:23 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-12-21 05:50:23 +0100
commit9ce9591cfb0c4ae5fcd272e1141472b2997f47b3 (patch)
tree1654ac967ddb3d8acee7ff506535e4d85a42c190 /gui/twmsg.cpp
parentFix gui_msg %s to {1} call (diff)
downloadandroid_bootable_recovery-9ce9591cfb0c4ae5fcd272e1141472b2997f47b3.tar
android_bootable_recovery-9ce9591cfb0c4ae5fcd272e1141472b2997f47b3.tar.gz
android_bootable_recovery-9ce9591cfb0c4ae5fcd272e1141472b2997f47b3.tar.bz2
android_bootable_recovery-9ce9591cfb0c4ae5fcd272e1141472b2997f47b3.tar.lz
android_bootable_recovery-9ce9591cfb0c4ae5fcd272e1141472b2997f47b3.tar.xz
android_bootable_recovery-9ce9591cfb0c4ae5fcd272e1141472b2997f47b3.tar.zst
android_bootable_recovery-9ce9591cfb0c4ae5fcd272e1141472b2997f47b3.zip
Diffstat (limited to 'gui/twmsg.cpp')
-rw-r--r--gui/twmsg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/twmsg.cpp b/gui/twmsg.cpp
index f9ffefc53..6c3bad4ae 100644
--- a/gui/twmsg.cpp
+++ b/gui/twmsg.cpp
@@ -33,7 +33,7 @@ std::string Message::GetFormatString(const std::string& name) const
resname = name.substr(0, pos);
std::string formatstr = resourceLookup(resname);
- bool notfound = formatstr.empty() || formatstr[0] == '['; // HACK: TODO: integrate this with resource-not-found logic
+ bool notfound = formatstr.empty() || formatstr.substr(0, 2) == "{@"; // HACK: TODO: integrate this with resource-not-found logic
if (notfound && pos != std::string::npos)
// resource not found - use the default format string specified after "="
formatstr = name.substr(pos + 1);