fix #6588. use ardour-codename only for Ardour.
authorRobin Gareus <robin@gareus.org>
Wed, 16 Sep 2015 22:40:32 +0000 (00:40 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 16 Sep 2015 22:40:58 +0000 (00:40 +0200)
gtk2_ardour/about.cc

index a1485e5c945be9967877c6de99134a38f690232f..c80f3cd973bf3d2ccd2acf90ffd3d11610051960 100644 (file)
@@ -27,6 +27,7 @@
 #include "pbd/error.h"
 #include "pbd/file_utils.h"
 
+#include "ardour/profile.h"
 #include "ardour/revision.h"
 #include "ardour/filesystem_paths.h"
 
@@ -601,6 +602,11 @@ About::About ()
 #else
        const std::string cpu_arch = _("32bit"); // ARM, ALPHA,..
 #endif
+       std::string codename = CODENAME;
+       if (ARDOUR::Profile->get_mixbus() || ARDOUR::Profile->get_trx()) {
+               codename = "";
+       }
+
        set_translator_credits (t);
        set_copyright (_("Copyright (C) 1999-2015 Paul Davis\n"));
        set_license (gpl);
@@ -608,7 +614,8 @@ About::About ()
        set_website (X_("http://ardour.org/"));
        set_website_label (_("http://ardour.org/"));
        set_version ((string_compose(_("%1%2\n(built from revision %3)\n%4"),
-                                    VERSIONSTRING, CODENAME,
+                                    VERSIONSTRING,
+                                    codename,
                                     revision, cpu_arch)));
 
        Gtk::Button* config_button = manage (new Button (_("Config")));