mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
* XspfUpdater must not try to update a playlist before it was loaded.
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user