commit facab124dd041a0ae8a09b1b20e026723ceb5af1
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Thu Oct 8 16:57:15 2026 +0200
Create an undo group before importing a text file
---
src/frontends/qt/GuiView.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index d717a77e5e..b81fa54728 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -3243,6 +3243,7 @@ static bool import(GuiView * lv, FileName const &
filename,
string filename2 = (loader_format == format) ?
filename.absFileName()
: support::changeExtension(filename.absFileName(),
theFormats().extension(loader_format));
+ UndoGroupHelper ugh(b);
lv->currentBufferView()->insertPlaintextFile(FileName(filename2),
as_paragraphs);
guiApp->setCurrentView(lv);
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs