]> git.lyx.org Git - features.git/commitdiff
Remove useless message (and avoid endless loop)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 30 Jun 2022 09:10:31 +0000 (11:10 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 30 Jun 2022 10:30:01 +0000 (12:30 +0200)
When changing the document class, the message "Converting document to
new document class..." is shown in minibuffer. This message leads to
weird GUI update interactions with the FindAndReplace panel, and
ultimately infinite loops. It would only be useful if the conversion
took a long time.

See this thread for rreference:
https://marc.info/?l=lyx-devel&m=165648365808777&w=2

Therefore, just remove it.

src/BufferView.cpp

index ebca6f88a545e94792d1b2ef6e24d48be154ab3b..72cbb2874dea0acf385b41ddabce7842d44ffbad 100644 (file)
@@ -1089,8 +1089,6 @@ void BufferView::makeDocumentClass()
 
 void BufferView::updateDocumentClass(DocumentClassConstPtr olddc)
 {
-       message(_("Converting document to new document class..."));
-
        StableDocIterator backcur(d->cursor_);
        ErrorList & el = buffer_.errorList("Class Switch");
        cap::switchBetweenClasses(