From 675ddaeaf9048a1f84c23912e9be9f5bf657c36b Mon Sep 17 00:00:00 2001 From: that Date: Tue, 2 Feb 2016 22:12:50 +0100 Subject: gui: fix conditions that compare with resource strings fixes auto-generating backup name before editing the backup name. Change-Id: Ied1c07b7dbdec9fa7fc80b3345970d95ac0ed1bb --- gui/object.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui') diff --git a/gui/object.cpp b/gui/object.cpp index 206f2c726..14df14fc1 100644 --- a/gui/object.cpp +++ b/gui/object.cpp @@ -94,6 +94,10 @@ bool GUIObject::isConditionTrue(Condition* condition) if (DataManager::GetValue(condition->mVar2, var2)) var2 = condition->mVar2; + if (var2.substr(0, 2) == "{@") + // translate resource string in value + var2 = gui_parse_text(var2); + // This is a special case, we stat the file and that determines our result if (var1 == "fileexists") { -- cgit v1.2.3