mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
* Changed win32-sparkle behaviour: It'll now look for beta versions if you run Tomahawk with --debug.
This commit is contained in:
@@ -152,11 +152,12 @@ TomahawkWindow::TomahawkWindow( QWidget* parent )
|
|||||||
connect(checkForUpdates, SIGNAL( triggered( bool ) ), SLOT( checkForUpdates() ) );
|
connect(checkForUpdates, SIGNAL( triggered( bool ) ), SLOT( checkForUpdates() ) );
|
||||||
#elif defined( WIN32 )
|
#elif defined( WIN32 )
|
||||||
QUrl updaterUrl;
|
QUrl updaterUrl;
|
||||||
#ifdef DEBUG_BUILD
|
|
||||||
|
if ( qApp->arguments().contains( "--debug" ) )
|
||||||
updaterUrl.setUrl( "http://download.tomahawk-player.org/sparklewin-debug" );
|
updaterUrl.setUrl( "http://download.tomahawk-player.org/sparklewin-debug" );
|
||||||
#else
|
else
|
||||||
updaterUrl.setUrl( "http://download.tomahawk-player.org/sparklewin" );
|
updaterUrl.setUrl( "http://download.tomahawk-player.org/sparklewin" );
|
||||||
#endif
|
|
||||||
qtsparkle::Updater* updater = new qtsparkle::Updater( updaterUrl, this );
|
qtsparkle::Updater* updater = new qtsparkle::Updater( updaterUrl, this );
|
||||||
updater->SetNetworkAccessManager( TomahawkUtils::nam() );
|
updater->SetNetworkAccessManager( TomahawkUtils::nam() );
|
||||||
updater->SetVersion( VERSION );
|
updater->SetVersion( VERSION );
|
||||||
|
Reference in New Issue
Block a user