Disable update querying dialog by default; prevents an annoying dialog

at startup.

ok sebastia@ (MAINTAINER)
This commit is contained in:
jasper 2014-10-28 10:00:52 +00:00
parent 3bdbc9a003
commit d178bdbb89
2 changed files with 17 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.20 2014/08/29 12:01:41 sebastia Exp $
# $OpenBSD: Makefile,v 1.21 2014/10/28 10:00:52 jasper Exp $
COMMENT = garmin gps map management tool
DISTNAME = qlandkartegt-1.7.7
REVISION = 0
CATEGORIES = geo x11
HOMEPAGE = http://www.qlandkarte.org/

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_CMainWindow_cpp,v 1.3 2014/10/28 10:00:52 jasper Exp $
Disable update querying dialog by default.
--- src/CMainWindow.cpp.orig Tue Oct 28 10:27:40 2014
+++ src/CMainWindow.cpp Tue Oct 28 10:27:48 2014
@@ -1565,7 +1565,7 @@ void CMainWindow::slotDownload()
void CMainWindow::slotUpdate()
{
SETTINGS;
- int result = cfg.value("checkVersion", -1).toInt();
+ int result = cfg.value("checkVersion", 0).toInt();
if(result == -1)
{
QString msg = tr(