From 9b933c1fb7cb70afaae8af10a4b7c109c51f323a Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 8 Jun 2017 14:59:40 +0200 Subject: [PATCH] SessionManager: Show only session name in message box when deleting session --- src/lib/session/sessionmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/session/sessionmanager.cpp b/src/lib/session/sessionmanager.cpp index 9890c546e..e55e57531 100644 --- a/src/lib/session/sessionmanager.cpp +++ b/src/lib/session/sessionmanager.cpp @@ -195,8 +195,8 @@ void SessionManager::cloneSession(const QString &filePath) void SessionManager::deleteSession(const QString &filePath) { - QMessageBox::StandardButton result = QMessageBox::information(mApp->activeWindow(), tr("Warning!"), tr("Are you sure to delete following session?\n%1") - .arg(QDir::toNativeSeparators(filePath)), QMessageBox::Yes | QMessageBox::No); + QMessageBox::StandardButton result = QMessageBox::information(mApp->activeWindow(), tr("Delete Session"), tr("Are you sure you want to delete session '%1'?") + .arg(QFileInfo(filePath).baseName()), QMessageBox::Yes | QMessageBox::No); if (result == QMessageBox::Yes) { QFile::remove(filePath); }