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

This commit is contained in:
Patrick Linstruth 2017-03-17 09:53:32 -07:00
parent c3e490f575
commit 6bcd0b17bf

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;