Skip to content

Commit

Permalink
Due to logical operations priorities sometimes no suitable resources …
Browse files Browse the repository at this point in the history
…were shown. Fixed.
  • Loading branch information
mamontov-cpp committed Sep 23, 2015
1 parent e613120 commit d7685f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/ifaceed/ifaceed.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 3.2.0, 2015-09-23T11:35:50. -->
<!-- Written by QtCreator 3.2.0, 2015-09-23T12:29:04. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ void gui::resourcetreewidget::ResourceTreeWidget::populateTree(
sad::resource::FolderIterator it = currentfolder->folderListBegin();
while(it != currentfolder->folderListEnd())
{
result = result || findSuitableFolders(it.value(), suitability);
bool suitabilityValue = findSuitableFolders(it.value(), suitability);
result = result || suitabilityValue;
++it;
}

Expand All @@ -496,7 +497,8 @@ void gui::resourcetreewidget::ResourceTreeWidget::populateTree(
if (list.count())
{
const sad::String & name = cur.value()->metaData()->name();
result = result || list.indexOf(STD2QSTRING(name)) != -1;
bool hasSuitableItem = list.indexOf(STD2QSTRING(name)) != -1;
result = result || hasSuitableItem;
}
}

Expand Down

0 comments on commit d7685f9

Please sign in to comment.