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>
This commit is contained in:
Dirk Hohndel 2015-06-12 06:56:08 -07:00
parent f442358915
commit a9c2a3f009

View file

@ -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?");