From 87431f69b779927de64afdb4a499ddaab17dce0e Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sat, 31 Aug 2019 19:27:20 -0400 Subject: [PATCH] 2019-08-31 Fred Gleason * Fixed a bug in the CD Track Ripper in rdlibrary(1) that allowed data tracks to be ripped. --- ChangeLog | 3 +++ rdlibrary/cdripper.cpp | 9 ++++++--- rdlibrary/cdripper.h | 3 +-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe90114a..dced7ee8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19058,3 +19058,6 @@ 2019-08-31 Fred Gleason * Fixed a bug in the Disk Ripper in rdlibrary(1) that allowed data tracks to be ripped. +2019-08-31 Fred Gleason + * Fixed a bug in the CD Track Ripper in rdlibrary(1) that allowed + data tracks to be ripped. diff --git a/rdlibrary/cdripper.cpp b/rdlibrary/cdripper.cpp index 56de3598..32c5e8af 100644 --- a/rdlibrary/cdripper.cpp +++ b/rdlibrary/cdripper.cpp @@ -1,8 +1,8 @@ // cdripper.cpp // -// CD Ripper Dialog for Rivendell. +// CD Track Ripper Dialog for Rivendell. // -// (C) Copyright 2002-2018 Fred Gleason +// (C) Copyright 2002-2019 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -31,7 +31,6 @@ #include #include #include -//Added by qt3to4: #include #include #include @@ -358,6 +357,10 @@ void CdRipper::trackSelectionChangedData() while(item!=NULL) { if(item->isSelected()) { + if(item->text(4)==tr("Data Track")) { + rip_rip_button->setDisabled(true); + return; + } titles.push_back(item->text(2)); } item=item->nextSibling(); diff --git a/rdlibrary/cdripper.h b/rdlibrary/cdripper.h index 6ac6566e..96cc7165 100644 --- a/rdlibrary/cdripper.h +++ b/rdlibrary/cdripper.h @@ -2,7 +2,7 @@ // // CD Ripper Dialog for Rivendell // -// (C) Copyright 2002-2018 Fred Gleason +// (C) Copyright 2002-2019 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -34,7 +34,6 @@ #include #include #include -//Added by qt3to4: #include #include