Re: r40377 - in lyx-devel/trunk/src: . frontends/qt4

2011-12-05 Thread Jean-Marc Lasgouttes
Le 05/12/2011 16:48, Vincent van Ravesteijn a écrit : Anyway, the point is that if BufferView says it can handle the LFUN, the dispatch mechanism will anyway try to dispatch to GuiView first. It would be easier if this wasn't the case. Indeed. I am not sure this problem is worth fixing though (

Re: r40377 - in lyx-devel/trunk/src: . frontends/qt4

2011-12-05 Thread Vincent van Ravesteijn
But this is normally caught by getStatus before invoking dispatch. Yes, well, you're right of course. .. but the dispatch function of BufferView is directly called from the dispatch function of GuiView, and the status of GuiView doesn't check the filename. Anyway, the point is that if Bu

Re: r40377 - in lyx-devel/trunk/src: . frontends/qt4

2011-12-05 Thread Jean-Marc Lasgouttes
Le 12/05/11 14:38, Vincent van Ravesteijn a écrit : + case LFUN_FILE_INSERT_PLAINTEXT_PARA: + case LFUN_FILE_INSERT_PLAINTEXT: { + bool const as_paragraph = (act == LFUN_FILE_INSERT_PLAINTEXT_PARA); + string const fname = to_utf8(cmd.argument()); + if (!FileName::isAbsolute(fname)) + dr.setMessag