adjust plugin-UI height when toggling expanders
[ardour.git] / gtk2_ardour / pingback.cc
index ecea85f657f67e91abf18eac91648da32646db6f..0153fd45b1ffc62ed1290b39a63d8c39ac325cef 100644 (file)
@@ -19,8 +19,6 @@
 */
 
 #include <string>
-#include <iostream>
-#include <fstream>
 #include <cstring>
 
 #ifdef PLATFORM_WINDOWS
@@ -32,7 +30,7 @@
 
 #include <curl/curl.h>
 
-#include <pbd/gstdio_compat.h>
+#include "pbd/gstdio_compat.h"
 #include <glibmm/miscutils.h>
 
 #include "pbd/compose.h"
@@ -42,6 +40,7 @@
 #include "ardour/rc_configuration.h"
 
 #include "pingback.h"
+#include "utils.h"
 
 using std::string;
 using namespace ARDOUR;
@@ -243,6 +242,13 @@ namespace ARDOUR {
 
 void pingback (const string& version, const string& announce_path)
 {
+       if (ARDOUR_UI_UTILS::running_from_source_tree ()) {
+               /* we don't ping under these conditions, because the user is
+                  probably just paul or robin :)
+               */
+               return;
+       }
+
        ping_call* cm = new ping_call (version, announce_path);
        pthread_t thread;