1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-11 03:21:52 +02:00

* Changed win32-sparkle behaviour: It'll now look for beta versions if you run Tomahawk with --debug.

This commit is contained in:
Christian Muehlhaeuser 2011-03-28 05:27:55 +02:00
parent 32ed0c748b
commit 6c49b2683e

@ -152,11 +152,12 @@ TomahawkWindow::TomahawkWindow( QWidget* parent )
connect(checkForUpdates, SIGNAL( triggered( bool ) ), SLOT( checkForUpdates() ) );
#elif defined( WIN32 )
QUrl updaterUrl;
#ifdef DEBUG_BUILD
if ( qApp->arguments().contains( "--debug" ) )
updaterUrl.setUrl( "http://download.tomahawk-player.org/sparklewin-debug" );
#else
else
updaterUrl.setUrl( "http://download.tomahawk-player.org/sparklewin" );
#endif
qtsparkle::Updater* updater = new qtsparkle::Updater( updaterUrl, this );
updater->SetNetworkAccessManager( TomahawkUtils::nam() );
updater->SetVersion( VERSION );