# HG changeset patch # User Chris Cannam # Date 1193937878 0 # Node ID e41af8419d4ae81fdb95afd91233241722be9ed6 # Parent a8bb5b2aca4c9b392912e8b1f573c3cfb9705eb0 * Remove alignment button altogether if no Match plugin installed. Then it won't annoy people who really don't want it; they can get rid of it easily enough. diff -r a8bb5b2aca4c -r e41af8419d4a framework/Document.cpp --- a/framework/Document.cpp Thu Nov 01 16:02:01 2007 +0000 +++ b/framework/Document.cpp Thu Nov 01 17:24:38 2007 +0000 @@ -671,7 +671,7 @@ } bool -Document::canAlign() const +Document::canAlign() { TransformId id = "vamp:match-vamp-plugin:match:path"; TransformFactory *factory = TransformFactory::getInstance(); diff -r a8bb5b2aca4c -r e41af8419d4a framework/Document.h --- a/framework/Document.h Thu Nov 01 16:02:01 2007 +0000 +++ b/framework/Document.h Thu Nov 01 17:24:38 2007 +0000 @@ -193,7 +193,7 @@ * Return true if alignment is supported (i.e. if the necessary * plugin is found). */ - bool canAlign() const; + static bool canAlign(); /** * Specify whether models added via addImportedModel should be