diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-12 06:56:08 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-12 10:42:14 -0700 |
commit | a9c2a3f009a282ef080190ff9edfbbeae874cf73 (patch) | |
tree | 0587668d0929c9d90051612a6a3cca24e1c7d0bb /qt-ui/mainwindow.cpp | |
parent | f442358915a8e0a2897a45be0dd081694cf6ced6 (diff) | |
download | subsurface-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.cpp | 3 |
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?"); |