From a9c2a3f009a282ef080190ff9edfbbeae874cf73 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 12 Jun 2015 06:56:08 -0700 Subject: [PATCH] Use friendlier file name when asking about saving changes It's silly to show our full URL with branch name in that case. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 7b5223e69..08c8e1711 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -980,7 +980,8 @@ bool MainWindow::askSaveChanges() QMessageBox response(this); if (existing_filename) - message = tr("Do you want to save the changes that you made in the file %1?").arg(existing_filename); + message = tr("Do you want to save the changes that you made in the file %1?") + .arg(displayedFilename(existing_filename)); else message = tr("Do you want to save the changes that you made in the data file?");