Fix default TDENewStuff providers url

pull/16/head
Slávek Banko 10 years ago
parent f285b77eab
commit f49c5b0756

@ -351,15 +351,13 @@ void ProviderLoader::load( const TQString &type, const TQString &providersList )
providersUrl = cfg->readEntry( "ProvidersUrl" );
if ( providersUrl.isEmpty() ) {
// TODO: Replace the default by the real one.
TQString server = cfg->readEntry( "MasterServer",
"https://www.trinitydesktop.org" );
providersUrl = server + "/ocs/" + type + "/providers.xml";
providersUrl = server + "/ocs/providers.xml";
}
kdDebug() << "ProviderLoader::load(): providersUrl: " << providersUrl << endl;
TDEIO::TransferJob *job = TDEIO::get( KURL( providersUrl ), false, false );
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
TQT_SLOT( slotJobResult( TDEIO::Job * ) ) );

Loading…
Cancel
Save