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,
void MusicBrainzQuery::start()
{
if(m_query == File) {
#if HAVE_TRM
#if KDE_IS_VERSION(3,1,90)
KProcess *process = new KProcess(this);
#else
......@@ -62,10 +61,11 @@ void MusicBrainzQuery::start()
connect(process, SIGNAL(processExited(KProcess *)),
SLOT(slotTrmGenerationFinished(KProcess *)));
process->start(KProcess::NotifyOnExit, KProcess::AllOutput);
#else
emit signalDone(TrackList());
#endif
bool started = process->start(KProcess::NotifyOnExit, KProcess::AllOutput);
if(!started) {
kdDebug(65432) << "trm utility could not be started." << endl;
emit signalDone();
}
}
else
QTimer::singleShot(0, this, SLOT(slotQuery()));
......
......@@ -103,8 +103,8 @@ public:
void start();
signals:
void signalDone(const MusicBrainzQuery::AlbumList &);
void signalDone(const MusicBrainzQuery::TrackList &);
void signalDone(const AlbumList & = AlbumList());
void signalDone(const TrackList &);
private slots:
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