Save or Discard dialog: show only the file name and not the full url

This commit is contained in:
Albert Astals Cid 2017-11-16 12:03:23 +01:00 committed by Albert Astals Cid
parent 19b7e3c112
commit 1420c9411e

View file

@ -1704,7 +1704,7 @@ bool Part::queryClose()
return true;
const int res = KMessageBox::warningYesNoCancel( widget(),
i18n( "Do you want to save your changes to \"%1\" or discard them?", url().toDisplayString() ),
i18n( "Do you want to save your changes to \"%1\" or discard them?", url().fileName() ),
i18n( "Close Document" ),
KStandardGuiItem::save(),
KStandardGuiItem::discard() );