Commit 922317aa authored by Scott Wheeler's avatar Scott Wheeler

I don't think there's any reason for this to be a build time dependancy.

svn path=/trunk/kdemultimedia/juk/; revision=224237
parent e2f1cbe1
...@@ -47,7 +47,6 @@ MusicBrainzQuery::MusicBrainzQuery(QueryType query, const QStringList &args, ...@@ -47,7 +47,6 @@ MusicBrainzQuery::MusicBrainzQuery(QueryType query, const QStringList &args,
void MusicBrainzQuery::start() void MusicBrainzQuery::start()
{ {
if(m_query == File) { if(m_query == File) {
#if HAVE_TRM
#if KDE_IS_VERSION(3,1,90) #if KDE_IS_VERSION(3,1,90)
KProcess *process = new KProcess(this); KProcess *process = new KProcess(this);
#else #else
...@@ -62,10 +61,11 @@ void MusicBrainzQuery::start() ...@@ -62,10 +61,11 @@ void MusicBrainzQuery::start()
connect(process, SIGNAL(processExited(KProcess *)), connect(process, SIGNAL(processExited(KProcess *)),
SLOT(slotTrmGenerationFinished(KProcess *))); SLOT(slotTrmGenerationFinished(KProcess *)));
process->start(KProcess::NotifyOnExit, KProcess::AllOutput); bool started = process->start(KProcess::NotifyOnExit, KProcess::AllOutput);
#else if(!started) {
emit signalDone(TrackList()); kdDebug(65432) << "trm utility could not be started." << endl;
#endif emit signalDone();
}
} }
else else
QTimer::singleShot(0, this, SLOT(slotQuery())); QTimer::singleShot(0, this, SLOT(slotQuery()));
......
...@@ -103,8 +103,8 @@ public: ...@@ -103,8 +103,8 @@ public:
void start(); void start();
signals: signals:
void signalDone(const MusicBrainzQuery::AlbumList &); void signalDone(const AlbumList & = AlbumList());
void signalDone(const MusicBrainzQuery::TrackList &); void signalDone(const TrackList &);
private slots: private slots:
void slotQuery(); void slotQuery();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment