QTfrontend/ui/page/pageeditteam.cpp
changeset 7794 ab7b94c03bc9
parent 7781 6505805e7f98
child 8049 133e22b5c410
--- a/QTfrontend/ui/page/pageeditteam.cpp	Tue Oct 23 05:21:44 2012 +0200
+++ b/QTfrontend/ui/page/pageeditteam.cpp	Tue Oct 23 06:50:19 2012 +0200
@@ -383,9 +383,14 @@
 
 void PageEditTeam::deleteTeam(const QString & name)
 {
-    QMessageBox reallyDelete(QMessageBox::Question, QMessageBox::tr("Teams"), QMessageBox::tr("Really delete this team?"), QMessageBox::Ok | QMessageBox::Cancel, this);
+    QMessageBox reallyDeleteMsg(this);
+    reallyDeleteMsg.setIcon(QMessageBox::Question);
+    reallyDeleteMsg.setWindowTitle(QMessageBox::tr("Teams - Are you sure?"));
+    reallyDeleteMsg.setText(QMessageBox::tr("Do you really want to delete the team '%1'?").arg(name));
+    reallyDeleteMsg.setWindowModality(Qt::WindowModal);
+    reallyDeleteMsg.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
 
-    if (reallyDelete.exec() == QMessageBox::Ok)
+    if (reallyDeleteMsg.exec() == QMessageBox::Ok)
         HWTeam(name).deleteFile();
 }