From a8c4b779ad2795f76769f7dae2749ef869300bee Mon Sep 17 00:00:00 2001 From: Kevin Smith <git@kismith.co.uk> Date: Sun, 26 Dec 2010 15:02:12 +0000 Subject: Prompt user with JID before deleting. Resolves: #729 diff --git a/Swift/QtUI/ContextMenus/QtRosterContextMenu.cpp b/Swift/QtUI/ContextMenus/QtRosterContextMenu.cpp index 1989dfb..1c2fc4b 100644 --- a/Swift/QtUI/ContextMenus/QtRosterContextMenu.cpp +++ b/Swift/QtUI/ContextMenus/QtRosterContextMenu.cpp @@ -73,7 +73,7 @@ void QtRosterContextMenu::handleRemoveContact() { QMessageBox msgBox; msgBox.setWindowTitle("Confirm contact deletion"); msgBox.setText("Are you sure you want to delete this contact?"); - msgBox.setInformativeText("This will remove the contact from all groups they may be in."); + msgBox.setInformativeText(QString("This will remove the contact '%1' from all groups they may be in.").arg(P2QSTRING(contact->getJID().toString()))); msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); msgBox.setDefaultButton(QMessageBox::Yes); int ret = msgBox.exec(); -- cgit v0.10.2-6-g49f6