Skip to content

Commit

Permalink
#5358: Add comment to VFSTreePopulator::SendItemAdded(), fixup SoundC…
Browse files Browse the repository at this point in the history
…hooser to call TreeModel::Row::SendItemAdded()
  • Loading branch information
codereader committed Oct 12, 2020
1 parent 0f60449 commit e9a668f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/wxutil/VFSTreePopulator.h
Expand Up @@ -83,6 +83,8 @@ class VFSTreePopulator
* and cannot mix between these two, as this variant here does not keep track
* of the "path-is-explicit" property and therefore doesn't support the
* forEachNode() method being called with a Visitor.
*
* Note: the callback needs to invoke row.SendItemAdded() when done.
*/
void addPath(const std::string& path, const ColumnPopulationCallback& func);

Expand Down
1 change: 1 addition & 0 deletions radiant/uimanager/SoundChooser.cpp
Expand Up @@ -75,6 +75,7 @@ class SoundShaderPopulator :
wxDataViewIconText(leafName, isFolder ? _folderIcon : _shaderIcon));
row[_columns.shaderName] = !isFolder ? shader.getName() : std::string();
row[_columns.isFolder] = isFolder;
row.SendItemAdded();
});
}
};
Expand Down

0 comments on commit e9a668f

Please sign in to comment.