]> git.lyx.org Git - features.git/commitdiff
Fix bug #6614: Preview Other Format Button Greys Out After Preview.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 28 Apr 2010 04:51:05 +0000 (04:51 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 28 Apr 2010 04:51:05 +0000 (04:51 +0000)
getStatus() returns false for LFUN_BUFFER_VIEW when a previewing process is running. So, if this process has finished we should free the menu item.

P.S. on windows, the item does not get disabled anyway.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34324 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 2d7c27d5f685c059a5e641b0f9d45ace7ca18459..906654cead66dca17d28a44af7e1c92c0d44e5d2 100644 (file)
@@ -463,6 +463,7 @@ void GuiView::threadFinished()
        QFutureWatcher<docstring> const * watcher =
                static_cast<QFutureWatcher<docstring> const *>(sender());
        message(watcher->result());
+       updateToolbars();
        errors(d.last_export_format);
 #endif
 }