]> git.lyx.org Git - features.git/commitdiff
Clarify dialog
authorGuillaume Munch <gm@lyx.org>
Sun, 5 Mar 2017 22:55:59 +0000 (23:55 +0100)
committerGuillaume Munch <gm@lyx.org>
Fri, 10 Mar 2017 23:50:57 +0000 (00:50 +0100)
src/frontends/qt4/GuiView.cpp

index 52a783af51fb12f4ab3cfd2b08faabbadcd349e7..1f1ec6126d38fa87056be2c032142a92c488f272 100644 (file)
@@ -3735,11 +3735,16 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                        if (!doc_buffer->isClean()) {
                                docstring const file =
                                        makeDisplayPath(doc_buffer->absFileName(), 20);
-                               docstring text = bformat(_("Any changes will be lost. "
-                                       "Are you sure you want to revert to the saved version "
-                                       "of the document %1$s?"), file);
-                               ret = Alert::prompt(_("Revert to saved document?"),
-                                       text, 1, 1, _("&Revert"), _("&Cancel"));
+                               doc_buffer->notifiesExternalModification();
+                               docstring text = doc_buffer->notifiesExternalModification() ?
+                                         _("Any changes will be lost. "
+                                           "Are you sure you want to load the version on disk "
+                                           "of the document %1$s?")
+                                       : _("Any changes will be lost. "
+                                           "Are you sure you want to revert to the saved version "
+                                           "of the document %1$s?");
+                               ret = Alert::prompt(_("Revert to file on disk?"),
+                                       bformat(text, file), 1, 1, _("&Revert"), _("&Cancel"));
                        }
 
                        if (ret == 0) {