changeset 51:e41af8419d4a

* 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.
author Chris Cannam
date Thu, 01 Nov 2007 17:24:38 +0000
parents a8bb5b2aca4c
children 43ad8d909e28
files framework/Document.cpp framework/Document.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();
--- 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