Fixed delete and voice track buttons

This commit is contained in:
Patrick Linstruth 2018-10-27 13:29:43 -07:00
parent 4f8a5278fd
commit 0119539d82
2 changed files with 4 additions and 2 deletions

View File

@ -17894,3 +17894,5 @@
2018-10-23 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'configure.ac' that caused detection of FLAC
support to always fail.
2018-10-27 Patrick Linstruth <patrick@deltecent.com>
* Fix delete and voice track buttons in rdlogedit(1)

View File

@ -631,8 +631,8 @@ void MainWidget::logSelectionChangedData()
item=(ListListViewItem *)item->nextSibling();
}
log_edit_button->setEnabled(count==1);
log_delete_button->setEnabled(count>0);
log_track_button->setEnabled(count==1);
log_delete_button->setEnabled(count>0&&rda->user()->deleteLog());
log_track_button->setEnabled(count==1&&rda->user()->voicetrackLog());
}