/media-gfx/meshlab/files/meshlab-2020.12-disable-updates.patch

https://gitlab.com/redcore/portage · Patch · 38 lines · 34 code · 4 blank · 0 comment · 0 complexity · f53bccc731b21b5810f322fbb9189d8e MD5 · raw file

  1. --- a/meshlab/mainwindow_Init.cpp
  2. +++ b/meshlab/mainwindow_Init.cpp
  3. @@ -607,7 +607,6 @@
  4. helpMenu->addAction(onlineHelpAct);
  5. helpMenu->addAction(onscreenHelpAct);
  6. helpMenu->addAction(submitBugAct);
  7. - helpMenu->addAction(checkUpdatesAct);
  8. fillEditMenu();
  9. fillRenderMenu();
  10. --- a/meshlab/mainwindow_RunTime.cpp
  11. +++ b/meshlab/mainwindow_RunTime.cpp
  12. @@ -2623,7 +2623,9 @@
  13. void MainWindow::helpOnline()
  14. {
  15. +#if defined(__ENABLE_AUTO_STATS__)
  16. checkForUpdates(false);
  17. +#endif
  18. QDesktopServices::openUrl(QUrl("http://www.meshlab.net/#support"));
  19. }
  20. @@ -2882,6 +2884,7 @@
  21. void MainWindow::showEvent(QShowEvent * event)
  22. {
  23. QWidget::showEvent(event);
  24. +#if defined(__ENABLE_AUTO_STATS__)
  25. QSettings settings;
  26. QSettings::setDefaultFormat(QSettings::NativeFormat);
  27. const QString versioncheckeddatestring("lastTimeMeshLabVersionCheckedOnStart");
  28. @@ -2902,6 +2905,7 @@
  29. settings.setValue(versioncheckeddatestring, todayStr);
  30. }
  31. sendUsAMail();
  32. +#endif
  33. }
  34. void MainWindow::meshAdded(int mid)