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 e908314..0c4d18a 100644
--- a/src/meshlab/mainwindow_RunTime.cpp
+++ b/src/meshlab/mainwindow_RunTime.cpp
@@ -2589,7 +2589,9 @@ void MainWindow::helpOnscreen()
 
 void MainWindow::helpOnline()
 {
+#if defined(__ENABLE_AUTO_STATS__)
 	checkForUpdates(false);
+#endif
 	QDesktopServices::openUrl(QUrl("http://www.meshlab.net/#support"));
 }
 
@@ -2773,6 +2775,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");
@@ -2793,6 +2796,7 @@ void MainWindow::showEvent(QShowEvent * event)
 		settings.setValue(versioncheckeddatestring, todayStr);
 	}
 	sendUsAMail();
+#endif
 }
 
 void MainWindow::meshAdded(int mid)
