2019-08-31 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the CD Track Ripper in rdlibrary(1) that allowed
	data tracks to be ripped.
This commit is contained in:
Fred Gleason 2019-08-31 19:27:20 -04:00
parent 0ab0b81068
commit 87431f69b7
3 changed files with 10 additions and 5 deletions

View File

@ -19058,3 +19058,6 @@
2019-08-31 Fred Gleason <fredg@paravelsystems.com> 2019-08-31 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the Disk Ripper in rdlibrary(1) that allowed * Fixed a bug in the Disk Ripper in rdlibrary(1) that allowed
data tracks to be ripped. data tracks to be ripped.
2019-08-31 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the CD Track Ripper in rdlibrary(1) that allowed
data tracks to be ripped.

View File

@ -1,8 +1,8 @@
// cdripper.cpp // cdripper.cpp
// //
// CD Ripper Dialog for Rivendell. // CD Track Ripper Dialog for Rivendell.
// //
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // 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 // it under the terms of the GNU General Public License version 2 as
@ -31,7 +31,6 @@
#include <qmessagebox.h> #include <qmessagebox.h>
#include <qcheckbox.h> #include <qcheckbox.h>
#include <qstringlist.h> #include <qstringlist.h>
//Added by qt3to4:
#include <QLabel> #include <QLabel>
#include <QResizeEvent> #include <QResizeEvent>
#include <QCloseEvent> #include <QCloseEvent>
@ -358,6 +357,10 @@ void CdRipper::trackSelectionChangedData()
while(item!=NULL) { while(item!=NULL) {
if(item->isSelected()) { if(item->isSelected()) {
if(item->text(4)==tr("Data Track")) {
rip_rip_button->setDisabled(true);
return;
}
titles.push_back(item->text(2)); titles.push_back(item->text(2));
} }
item=item->nextSibling(); item=item->nextSibling();

View File

@ -2,7 +2,7 @@
// //
// CD Ripper Dialog for Rivendell // CD Ripper Dialog for Rivendell
// //
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // 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 // it under the terms of the GNU General Public License version 2 as
@ -34,7 +34,6 @@
#include <qcombobox.h> #include <qcombobox.h>
#include <qcheckbox.h> #include <qcheckbox.h>
#include <q3textedit.h> #include <q3textedit.h>
//Added by qt3to4:
#include <QResizeEvent> #include <QResizeEvent>
#include <QCloseEvent> #include <QCloseEvent>