summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 06:56:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 10:42:14 -0700
commita9c2a3f009a282ef080190ff9edfbbeae874cf73 (patch)
tree0587668d0929c9d90051612a6a3cca24e1c7d0bb /qt-ui/mainwindow.cpp
parentf442358915a8e0a2897a45be0dd081694cf6ced6 (diff)
downloadsubsurface-a9c2a3f009a282ef080190ff9edfbbeae874cf73.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
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?");