Merge pull request #168 from deltecent/issue167

Display '(MM:SS) Event Name' in delete event dialog

Thanks!
This commit is contained in:
Fred Gleason 2017-04-05 15:47:54 -04:00 committed by GitHub
commit 173fb6fa2f

View File

@ -377,10 +377,11 @@ void EditClock::deleteData()
if(item->text(4).isEmpty()) {
return;
}
str=QString(tr("Are you sure you want to\ndelete"));
str=QString(tr("Are you sure you want to delete\n"));
if(QMessageBox::question(this,tr("Delete Event"),
QString().sprintf("%s \'%s\'?",(const char *)str,
(const char *)item->text(3)),
QString().sprintf("%s \'(%s) %s\'?",(const char *)str,
(const char *)item->text(0),
(const char *)item->text(2)),
QMessageBox::Yes,QMessageBox::No)!=
QMessageBox::Yes) {
return;