1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-03 13:30:26 +01:00

Finnish immideately if there are no tracks to rip

This commit is contained in:
Mattias Andersson 2018-07-05 16:04:18 +02:00 committed by John Maguire
parent 059b5ed04f
commit 2c084e45b6

View File

@ -206,6 +206,11 @@ void Ripper::WriteWAVHeader(QFile* stream, int32_t i_bytecount) {
}
void Ripper::Rip() {
if (tracks_.isEmpty()) {
emit Finished();
return;
}
temporary_directory_ = Utilities::MakeTempDir() + "/";
finished_success_ = 0;
finished_failed_ = 0;