Skip to content

Commit

Permalink
gui: fix conditions that compare with resource strings
Browse files Browse the repository at this point in the history
fixes auto-generating backup name before editing the backup name.

Change-Id: Ied1c07b7dbdec9fa7fc80b3345970d95ac0ed1bb
  • Loading branch information
that1 authored and Dees-Troy committed Feb 3, 2016
1 parent 31f855b commit 675ddae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand Down

0 comments on commit 675ddae

Please sign in to comment.