use running_from_source_tree()

This commit is contained in:
Paul Davis 2016-06-21 19:23:01 -04:00
parent 0cd43a553e
commit 40bb2a5a08

View file

@ -331,8 +331,7 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
if (string (VERSIONSTRING).find (".pre") != string::npos) {
/* check this is not being run from ./ardev etc. */
gchar const *x = g_getenv ("ARDOUR_THEMES_PATH");
if (!x || string (x).find ("gtk2_ardour") == string::npos) {
if (!running_from_source_tree ()) {
pre_release_dialog ();
}
}