mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-01 06:33:56 +01:00
2020-06-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlibrary(1) that would throw a segfault when attempting to delete a range of cuts, one of which was in the clipboard. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -19868,3 +19868,7 @@
|
||||
* Fixed a cast overflow bug in rdairplay(1) that cause incorrect
|
||||
pie timer indications after adding or deleting events to a running
|
||||
log.
|
||||
2020-06-09 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in rdlibrary(1) that would throw a segfault when
|
||||
attempting to delete a range of cuts, one of which was in the
|
||||
clipboard.
|
||||
|
||||
@@ -360,15 +360,18 @@ void AudioCart::deleteCutData()
|
||||
// Check Clipboard
|
||||
//
|
||||
if(cut_clipboard!=NULL) {
|
||||
if(item->text(12)==cut_clipboard->cutName()) {
|
||||
if(QMessageBox::question(this,tr("Empty Clipboard"),
|
||||
tr("Deleting this cut will also empty the clipboard.\nDo you still want to proceed?"),QMessageBox::Yes,QMessageBox::No)==
|
||||
QMessageBox::No) {
|
||||
return;
|
||||
for(unsigned i=0;i<cutnames.size();i++) {
|
||||
if(cutnames.at(i)==cut_clipboard->cutName()) {
|
||||
if(QMessageBox::question(this,tr("Empty Clipboard"),
|
||||
tr("Deleting this cut will also empty the clipboard.\nDo you still want to proceed?"),QMessageBox::Yes,QMessageBox::No)==
|
||||
QMessageBox::No) {
|
||||
return;
|
||||
}
|
||||
delete cut_clipboard;
|
||||
cut_clipboard=NULL;
|
||||
paste_cut_button->setDisabled(true);
|
||||
break;
|
||||
}
|
||||
delete cut_clipboard;
|
||||
cut_clipboard=NULL;
|
||||
paste_cut_button->setDisabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user