1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-30 01:00:13 +02:00

Add proper QtSparkle find module and make it an optional dep

This commit is contained in:
Dominik Schmidt
2012-11-03 01:04:13 +01:00
parent a5ef97788e
commit 8282d0a4ba
4 changed files with 34 additions and 6 deletions

View File

@@ -21,6 +21,7 @@
#cmakedefine WITH_BREAKPAD
#cmakedefine WITH_CRASHREPORTER
#cmakedefine WITH_BINARY_ATTICA
#cmakedefine WITH_QtSparkle
#cmakedefine LIBLASTFM_FOUND

View File

@@ -22,6 +22,8 @@
#include "TomahawkWindow.h"
#include "ui_TomahawkWindow.h"
#include "config.h"
#include <QAction>
#include <QCloseEvent>
#include <QDesktopServices>
@@ -76,7 +78,7 @@
#include "LoadXSPFDialog.h"
#include "widgets/ContainedMenuButton.h"
#ifdef Q_OS_WIN
#if defined( Q_WS_WIN ) && defined( WITH_QtSparkle )
#include <qtsparkle/Updater>
#ifndef THBN_CLICKED
#define THBN_CLICKED 0x1800
@@ -411,7 +413,7 @@ TomahawkWindow::setupUpdateCheck()
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE )
connect( ActionCollection::instance()->getAction( "checkForUpdates" ), SIGNAL( triggered( bool ) ),
SLOT( checkForUpdates() ) );
#elif defined( Q_WS_WIN )
#elif defined( Q_WS_WIN ) && defined( WITH_QtSparkle )
QUrl updaterUrl;
if ( qApp->arguments().contains( "--debug" ) )