mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
SessionManager: Show only session name in message box when deleting session
This commit is contained in:
parent
26eb3753c0
commit
9b933c1fb7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user