mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +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 "XspfUpdater.h"
|
||||||
|
|
||||||
#include "Playlist.h"
|
#include "Playlist.h"
|
||||||
#include "utils/XspfLoader.h"
|
|
||||||
#include "Pipeline.h"
|
#include "Pipeline.h"
|
||||||
#include "utils/TomahawkUtils.h"
|
|
||||||
#include "Source.h"
|
#include "Source.h"
|
||||||
|
#include "utils/XspfLoader.h"
|
||||||
|
#include "utils/TomahawkUtils.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
@@ -100,6 +101,11 @@ XspfUpdater::updateNow()
|
|||||||
qWarning() << "XspfUpdater not updating because we have an empty url...";
|
qWarning() << "XspfUpdater not updating because we have an empty url...";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ( !playlist()->loaded() )
|
||||||
|
{
|
||||||
|
tDebug() << "XspfUpdater not updating because playlist wasn't loaded yet...";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
XSPFLoader* l = new XSPFLoader( false, false );
|
XSPFLoader* l = new XSPFLoader( false, false );
|
||||||
l->setAutoResolveTracks( false );
|
l->setAutoResolveTracks( false );
|
||||||
|
Reference in New Issue
Block a user