1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Show a detailed error when the tagreader executable couldn't be started.

This commit is contained in:
David Sansome 2012-01-07 22:58:30 +00:00
parent 31f423a0ff
commit ccb3a0aa3a
2 changed files with 10 additions and 0 deletions

View File

@ -33,12 +33,19 @@ TagReaderClient::TagReaderClient(QObject* parent)
sInstance = this;
worker_pool_->SetExecutableName(kWorkerExecutableName);
connect(worker_pool_, SIGNAL(WorkerFailedToStart()), SLOT(WorkerFailedToStart()));
}
void TagReaderClient::Start() {
worker_pool_->Start();
}
void TagReaderClient::WorkerFailedToStart() {
qLog(Error) << "The" << kWorkerExecutableName << "executable was not found"
<< "in the current directory or on the PATH. Clementine will"
<< "not be able to read music file tags without it.";
}
TagReaderReply* TagReaderClient::ReadFile(const QString& filename) {
pb::tagreader::Message message;
pb::tagreader::ReadFileRequest* req = message.mutable_read_file_request();

View File

@ -57,6 +57,9 @@ public:
// TODO: Make this not a singleton
static TagReaderClient* Instance() { return sInstance; }
private slots:
void WorkerFailedToStart();
private:
static TagReaderClient* sInstance;