1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-20 07:52:30 +02:00

* XspfUpdater must not try to update a playlist before it was loaded.

This commit is contained in:
Christian Muehlhaeuser 2013-05-16 11:56:48 +02:00
parent d1ed3dd48d
commit cce4cfbe4b

View File

@ -19,10 +19,11 @@
#include "XspfUpdater.h"
#include "Playlist.h"
#include "utils/XspfLoader.h"
#include "Pipeline.h"
#include "utils/TomahawkUtils.h"
#include "Source.h"
#include "utils/XspfLoader.h"
#include "utils/TomahawkUtils.h"
#include "utils/Logger.h"
#include <QTimer>
@ -100,6 +101,11 @@ XspfUpdater::updateNow()
qWarning() << "XspfUpdater not updating because we have an empty url...";
return;
}
if ( !playlist()->loaded() )
{
tDebug() << "XspfUpdater not updating because playlist wasn't loaded yet...";
return;
}
XSPFLoader* l = new XSPFLoader( false, false );
l->setAutoResolveTracks( false );