File disable-update-check.patch of Package mkvtoolnix.3028

diff -Nur mkvtoolnix-12.0.0/src/mkvtoolnix-gui/main_window/main_window.cpp newmkv/src/mkvtoolnix-gui/main_window/main_window.cpp
--- mkvtoolnix-12.0.0/src/mkvtoolnix-gui/main_window/main_window.cpp	2017-05-20 19:25:01.000000000 +0200
+++ newmkv/src/mkvtoolnix-gui/main_window/main_window.cpp	2017-05-30 16:36:38.404879883 +0200
@@ -159,7 +159,8 @@
 
   connect(this,                                   &MainWindow::preferencesChanged, this, &MainWindow::setToolSelectorVisibility);
 
-  connect(d->ui->actionHelpCheckForUpdates,       &QAction::triggered,             this, &MainWindow::checkForUpdates);
+  //No updates dialog on openSUSE as updates are maintained by the distribution
+  //connect(d->ui->actionHelpCheckForUpdates,       &QAction::triggered,             this, &MainWindow::checkForUpdates);
 }
 
 void
@@ -445,6 +446,9 @@
 
 void
 MainWindow::silentlyCheckForUpdates() {
+  // No check on openSUSE, as updates are maintained by the distribution
+  return;
+
   auto forceUpdateCheck = mtx::sys::get_environment_variable("FORCE_UPDATE_CHECK") == "1";
 
   if (!forceUpdateCheck && !Util::Settings::get().m_checkForUpdates)
openSUSE Build Service is sponsored by