SHA256
1
0
forked from pool/Jamulus
Jamulus/Jamulus-disable_version_check.patch
Luigi Baldoni b1fde9261d - Update to version 3.5.11
* support a check for updates
  * added an optional server list whitelist filter
  * added a command line argument to enable multithreading in
    the server
  * added support for split protocol messages (fixes bug with
    large number of clients connected to a server)
  * store recorder settings
  * added a command line argument to disable recording on start
    up
  * accessibility improvements
  * added Jack audio audio latency calculation
  * show the server name in the title bar
  * bug fix: crash when using the Jack backend and quickly
    reconfiguring, coded by hselasky
  * bug fix: Alt+h shortcut to open the Chat dialog did not
    work, use Alt+c instead
  * bug fix: pan is not correctly initialized in the server on a
    new connection
- Add Jamulus-disable_version_check.patch

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/Jamulus?expand=0&rev=21
2020-09-24 19:02:13 +00:00

39 lines
1.4 KiB
Diff

From a05f354bccebc8b80692135e8e37da53dd6a349a Mon Sep 17 00:00:00 2001
From: Volker Fischer <corrados@users.noreply.github.com>
Date: Thu, 24 Sep 2020 17:08:23 +0200
Subject: [PATCH] added qmake CONFIG parameter disable_version_check for
disabling the automatic version check
---
Jamulus.pro | 6 ++++++
src/clientdlg.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/Jamulus.pro b/Jamulus.pro
index 6605be7e..3f0db7e5 100755
--- a/Jamulus.pro
+++ b/Jamulus.pro
@@ -1011,3 +1011,9 @@ contains(CONFIG, "opus_shared_lib") {
SOURCES += $$SOURCES_OPUS
DISTFILES += $$DISTFILES_OPUS
}
+
+# disable version check if requested
+contains(CONFIG, "disable_version_check") {
+ message(The version check is disabled.)
+ DEFINES += DISABLE_VERSION_CHECK
+}
diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp
index afe18f8f..8c4a6d4d 100755
--- a/src/clientdlg.cpp
+++ b/src/clientdlg.cpp
@@ -756,7 +756,7 @@ void CClientDlg::OnCLVersionAndOSReceived ( CHostAddress InetAddr,
QString strVersion )
{
// update check
-#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
+#if ( QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) ) && !defined ( DISABLE_VERSION_CHECK )
if ( QVersionNumber::compare ( QVersionNumber::fromString ( strVersion ), QVersionNumber::fromString ( VERSION ) ) > 0 )
{
lblUpdateCheck->show();