From: Teemu Ikonen <tpikonen@gmail.com>
Date: Fri, 6 Dec 2019 16:57:50 -0600
Subject: Disable checking for updates on startup.

Forwarded: not-needed
---
 src/meshlab/mainwindow_RunTime.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp
index 784bcbf..0f052b1 100644
--- a/src/meshlab/mainwindow_RunTime.cpp
+++ b/src/meshlab/mainwindow_RunTime.cpp
@@ -2656,7 +2656,9 @@ void MainWindow::helpOnscreen()
 
 void MainWindow::helpOnline()
 {
+#if defined(__ENABLE_AUTO_STATS__)
     checkForUpdates(false);
+#endif
     QDesktopServices::openUrl(QUrl("http://www.meshlab.net/#support"));
 }
 
@@ -2915,6 +2917,7 @@ void MainWindow::updateProgressBar( const int pos,const QString& text )
 void MainWindow::showEvent(QShowEvent * event)
 {
 	QWidget::showEvent(event);
+#if defined(__ENABLE_AUTO_STATS__)
 	QSettings settings;
     QSettings::setDefaultFormat(QSettings::NativeFormat);
 	const QString versioncheckeddatestring("lastTimeMeshLabVersionCheckedOnStart");
@@ -2935,6 +2938,7 @@ void MainWindow::showEvent(QShowEvent * event)
 		settings.setValue(versioncheckeddatestring, todayStr);
 	}
 	sendUsAMail();
+#endif
 }
 
 void MainWindow::meshAdded(int mid)
