diff --git a/kdevplatform/shell/sessionchooserdialog.cpp b/kdevplatform/shell/sessionchooserdialog.cpp --- a/kdevplatform/shell/sessionchooserdialog.cpp +++ b/kdevplatform/shell/sessionchooserdialog.cpp @@ -198,6 +198,8 @@ QModelIndex index = m_model->index(m_deleteCandidateRow, 0); const QString uuid = m_model->data(index, Qt::DisplayRole).toString(); + QString sessionName = m_model->data(m_model->index(m_deleteCandidateRow,1), Qt::DisplayRole).toString(); + sessionName.chop(3); TryLockSessionResult result = SessionController::tryLockSession( uuid ); if( !result.lock ) { @@ -205,15 +207,15 @@ QString errText = i18nc("@info", "

Cannot delete a locked session."); if( result.runInfo.holderPid != -1 ) { - errText += i18nc("@info", "

The session is locked by %1 on %2 (PID %3).", - result.runInfo.holderApp, result.runInfo.holderHostname, result.runInfo.holderPid); + errText += i18nc("@info", "

The session '%1' is locked by %2 on %3 (PID %4).", + sessionName, result.runInfo.holderApp, result.runInfo.holderHostname, result.runInfo.holderPid); } KMessageBox::error( this, errText, errCaption ); return; } - const QString text = i18nc("@info", "The session and all contained settings will be deleted. The projects will stay unaffected. Do you really want to continue?"); + const QString text = i18nc("@info", "The session '%1' and all contained settings will be deleted. The projects will stay unaffected. Do you really want to continue?",sessionName); const QString caption = i18nc("@title", "Delete Session"); const KGuiItem deleteItem = KStandardGuiItem::del(); const KGuiItem cancelItem = KStandardGuiItem::cancel(); @@ -225,4 +227,3 @@ m_deleteCandidateRow = -1; } } -