]> git.lyx.org Git - lyx.git/commit
Fix bug #7916: Undo warning message when inserting plaintext file
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 5 Dec 2011 13:12:57 +0000 (13:12 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 5 Dec 2011 13:12:57 +0000 (13:12 +0000)
commita35e512e902cc511e0b0afb0aa5f4122a18fb295
treef30e5f6d28212c8001011f4d45af031d83f52abb
parenta0d81578910d0327532abd5ed51a58522c3ec08b
Fix bug #7916: Undo warning message when inserting plaintext file

LFUN_INSERT_PLAINTEXT is handled in GuiView because it might need to ask for a filename. But if the filename is given as a paramater we can handle it in BufferView immediately. Also, when we've asked for the filename in GuiView we should dispatch the LFUN to BufferView in order to properly use the Undo mechanism.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40377 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferView.cpp
src/frontends/qt4/GuiView.cpp