From: Richard Heck Date: Sat, 25 Jun 2016 02:28:38 +0000 (+0100) Subject: Fix bug #8814: Ask where to export file if it is not X-Git-Tag: 2.2.1~96 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1207d93951c9baef700f0f177cdfc2cd1fe2a153;p=features.git Fix bug #8814: Ask where to export file if it is not yet saved. --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 6bfcdcb032..4fa05399cf 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1,4 +1,4 @@ -/** +/** * \file GuiView.cpp * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. @@ -3530,7 +3530,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr) dispatch(FuncRequest(LFUN_DIALOG_SHOW, "sendto"), dr); break; } - if (!target_dir.isDirWritable()) { + if (doc_buffer->isUnnamed() || !target_dir.isDirWritable()) { exportBufferAs(*doc_buffer, cmd.argument()); break; } diff --git a/status.22x b/status.22x index e6fca8ff54..eff4c0f406 100644 --- a/status.22x +++ b/status.22x @@ -72,6 +72,8 @@ What's new - Make sure we output all XHTML table cells, even the empty ones (bug 10153). +- Ask where to export file if not yet saved (bug 8814). + * LYX2LYX