1
0
mirror of https://github.com/ElvishArtisan/rivendell.git synced 2025-05-28 14:42:34 +02:00

Merge pull request 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

@ -377,10 +377,11 @@ void EditClock::deleteData()
if(item->text(4).isEmpty()) { if(item->text(4).isEmpty()) {
return; 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"), if(QMessageBox::question(this,tr("Delete Event"),
QString().sprintf("%s \'%s\'?",(const char *)str, QString().sprintf("%s \'(%s) %s\'?",(const char *)str,
(const char *)item->text(3)), (const char *)item->text(0),
(const char *)item->text(2)),
QMessageBox::Yes,QMessageBox::No)!= QMessageBox::Yes,QMessageBox::No)!=
QMessageBox::Yes) { QMessageBox::Yes) {
return; return;