From 2c084e45b667dfa0b7f5e95f3a834595f8255bfe Mon Sep 17 00:00:00 2001 From: Mattias Andersson Date: Thu, 5 Jul 2018 16:04:18 +0200 Subject: [PATCH] Finnish immideately if there are no tracks to rip --- src/ripper/ripper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ripper/ripper.cpp b/src/ripper/ripper.cpp index 405442c85..b67350a2c 100644 --- a/src/ripper/ripper.cpp +++ b/src/ripper/ripper.cpp @@ -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;