From ab32452920e972ab532381a6d1d9e4725e74eda6 Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Sat, 28 Apr 2012 12:38:39 +0200 Subject: [PATCH] Show entry title/group name in delete dialog. --- src/gui/DatabaseWidget.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 66958e545..7ed11f228 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -138,7 +138,9 @@ void DatabaseWidget::deleteEntry() bool inRecylceBin = Tools::hasChild(m_db->metadata()->recycleBin(), m_entryView->currentEntry()); if (inRecylceBin || !m_db->metadata()->recycleBinEnabled()) { QMessageBox::StandardButton result = QMessageBox::question( - this, tr("Question"), tr("Do you really want to delete this entry for good?"), + this, tr("Delete entry?"), + tr("Do you really want to delete the entry \"%1\" for good?") + .arg(m_entryView->currentEntry()->title()), QMessageBox::Yes | QMessageBox::No); if (result == QMessageBox::Yes) { delete m_entryView->currentEntry(); @@ -164,7 +166,9 @@ void DatabaseWidget::deleteGroup() bool inRecylceBin = Tools::hasChild(m_db->metadata()->recycleBin(), m_groupView->currentGroup()); if (inRecylceBin || !m_db->metadata()->recycleBinEnabled()) { QMessageBox::StandardButton result = QMessageBox::question( - this, tr("Question"), tr("Do you really want to delete this group for good?"), + this, tr("Delete group?"), + tr("Do you really want to delete the group \"%1\" for good?") + .arg(m_groupView->currentGroup()->name()), QMessageBox::Yes | QMessageBox::No); if (result == QMessageBox::Yes) { delete m_groupView->currentGroup();