mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 11:30:49 +02:00
Revert "Process events while parsing potentially very long script responses"
This reverts commit 1025e77d3e
.
This commit is contained in:
@@ -34,9 +34,7 @@
|
|||||||
// TODO:
|
// TODO:
|
||||||
#include "../Result.h"
|
#include "../Result.h"
|
||||||
#include "../Track.h"
|
#include "../Track.h"
|
||||||
|
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QCoreApplication>
|
|
||||||
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
@@ -263,8 +261,6 @@ ScriptAccount::parseResultVariantList( const QVariantList& reslist )
|
|||||||
|
|
||||||
foreach( const QVariant& rv, reslist )
|
foreach( const QVariant& rv, reslist )
|
||||||
{
|
{
|
||||||
QCoreApplication::processEvents();
|
|
||||||
|
|
||||||
QVariantMap m = rv.toMap();
|
QVariantMap m = rv.toMap();
|
||||||
|
|
||||||
int duration = m.value( "duration", 0 ).toInt();
|
int duration = m.value( "duration", 0 ).toInt();
|
||||||
|
@@ -28,8 +28,6 @@
|
|||||||
#include "ScriptJob.h"
|
#include "ScriptJob.h"
|
||||||
#include "ScriptCommand_AllArtists.h"
|
#include "ScriptCommand_AllArtists.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
ScriptCommand_AllAlbums::ScriptCommand_AllAlbums( const Tomahawk::collection_ptr& collection,
|
ScriptCommand_AllAlbums::ScriptCommand_AllAlbums( const Tomahawk::collection_ptr& collection,
|
||||||
@@ -155,8 +153,6 @@ ScriptCommand_AllAlbums::parseAlbumVariantList( const QList< Tomahawk::artist_pt
|
|||||||
bool useArtistList = ( artists.length() > 1 );
|
bool useArtistList = ( artists.length() > 1 );
|
||||||
for( int i = 0; i < reslist.length(); i++ )
|
for( int i = 0; i < reslist.length(); i++ )
|
||||||
{
|
{
|
||||||
QCoreApplication::processEvents();
|
|
||||||
|
|
||||||
const QString val = reslist[ i ].toString();
|
const QString val = reslist[ i ].toString();
|
||||||
if ( val.trimmed().isEmpty() )
|
if ( val.trimmed().isEmpty() )
|
||||||
continue;
|
continue;
|
||||||
|
@@ -27,8 +27,6 @@
|
|||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
#include "../Typedefs.h"
|
#include "../Typedefs.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
ScriptCommand_AllArtists::ScriptCommand_AllArtists( const Tomahawk::collection_ptr& collection,
|
ScriptCommand_AllArtists::ScriptCommand_AllArtists( const Tomahawk::collection_ptr& collection,
|
||||||
@@ -114,8 +112,6 @@ ScriptCommand_AllArtists::parseArtistVariantList( const QVariantList& reslist )
|
|||||||
|
|
||||||
foreach( const QVariant& rv, reslist )
|
foreach( const QVariant& rv, reslist )
|
||||||
{
|
{
|
||||||
QCoreApplication::processEvents();
|
|
||||||
|
|
||||||
const QString val = rv.toString();
|
const QString val = rv.toString();
|
||||||
if ( val.trimmed().isEmpty() )
|
if ( val.trimmed().isEmpty() )
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user