plugin status fixes from 2.X
[ardour.git] / libs / ardour / ardour / plugin_manager.h
index 14c419078759040cc2a981f706603ba6634a1340..302b6d2bc9f0c8bf56791d788406d48a8c59d74d 100644 (file)
@@ -86,7 +86,12 @@ class PluginManager : public boost::noncopyable {
            }
 
            bool operator<(const PluginStatus& other) const {
-                   return other.type < type || other.unique_id < unique_id;
+                   if (other.type < type) {
+                           return true;
+                   } else if (other.type == type && other.unique_id < unique_id) {
+                           return true;
+                   }
+                   return false;
            }
        };
        typedef std::set<PluginStatus> PluginStatusList;