Skip to content

Commit

Permalink
Fixed bug in selection logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajp8164 committed Jan 6, 2012
1 parent 1477956 commit 52790b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mediaportal/Core/guilib/GUIWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ public bool LoadSkin()
case "import":

// Allow an include to be conditionally loaded based on a 'condition' expression.
bool loadInclude = false;
bool loadInclude = true;
if (node.Attributes["condition"] != null && !string.IsNullOrEmpty(node.Attributes["condition"].Value))
{
try
Expand All @@ -659,6 +659,7 @@ public bool LoadSkin()
catch (FormatException)
{
// The include will not be loaded if the expression could not be evaluated.
loadInclude = false;
Log.Debug("LoadSkin: {0}, could not evaluate include expression '{1}' ", _windowXmlFileName, node.Attributes["condition"].Value);
}
}
Expand Down

0 comments on commit 52790b8

Please sign in to comment.