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:
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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user