From 400ca515d433cde152c6de723ece90c0887ba341 Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Tue, 29 Sep 2020 19:08:42 +0200 Subject: [PATCH] Rework patch: disable-update-check --- debian/patches/disable-update-check | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/debian/patches/disable-update-check b/debian/patches/disable-update-check index fe4b567..ab15fde 100644 --- a/debian/patches/disable-update-check +++ b/debian/patches/disable-update-check @@ -1,16 +1,16 @@ Description: Disable update check as it's useless for a packaged version Author: Jakob Haufe -Index: minitube/src/mainwindow.cpp -=================================================================== ---- minitube.orig/src/mainwindow.cpp -+++ minitube/src/mainwindow.cpp -@@ -218,7 +218,7 @@ void MainWindow::lazyInit() { - - ChannelAggregator::instance()->start(); - -- checkForUpdate(); -+ //checkForUpdate(); - - initialized = true; +diff --git a/minitube.pro b/minitube.pro +index e75a41d..441cc28 100644 +--- a/minitube.pro ++++ b/minitube.pro +@@ -281,6 +281,8 @@ mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri) + include(lib/updater/updater.pri) } + ++DEFINES -= UPDATER ++ + message(CONFIG: $$CONFIG) + message(DEFINES: $$DEFINES) + message(QMAKE_CXXFLAGS: $$QMAKE_CXXFLAGS) -- 2.39.5