From c15c6f79be7b2d15f4f3f6358c9e35fecaefd416 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Sun, 12 Jan 2014 11:45:35 +0000 Subject: [PATCH] Added explanatory comment. I'd forgotten myself that regex entries get matched. --- src/gui/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 9f303f0f..c8af15cc 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -589,7 +589,8 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) { boss::vertex_it vit, vitend; for (boost::tie(vit, vitend) = boost::vertices(graph); vit != vitend; ++vit) { BOOST_LOG_TRIVIAL(trace) << "Merging for plugin \"" << graph[*vit].Name() << "\""; - //Check if there is already a plugin in the 'plugins' list or not. + + //Check if there is a plugin entry in the masterlist. This will also find matching regex entries. list::iterator pos = std::find(mlist_plugins.begin(), mlist_plugins.end(), graph[*vit]); if (pos != mlist_plugins.end()) { @@ -597,6 +598,7 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) { graph[*vit].Merge(*pos); } + //Check if there is a plugin entry in the userlist. This will also find matching regex entries. pos = std::find(ulist_plugins.begin(), ulist_plugins.end(), graph[*vit]); if (pos != ulist_plugins.end()) {