On Fri, Sep 12, 2008 at 02:03:01AM -0000, [EMAIL PROTECTED] wrote: > Author: sanda > Date: Fri Sep 12 04:02:56 2008 > New Revision: 26359 > > URL: http://www.lyx.org/trac/changeset/26359 > Log: > Try to fix the rest of bug http://bugzilla.lyx.org/show_bug.cgi?id=5082 . > (Initialize dialogs after lyx launch). > > Modified: > lyx-devel/trunk/src/frontends/qt4/GuiView.cpp > > Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.cpp > URL: > http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiView.cpp?rev=26359 > ============================================================================== > --- lyx-devel/trunk/src/frontends/qt4/GuiView.cpp (original) > +++ lyx-devel/trunk/src/frontends/qt4/GuiView.cpp Fri Sep 12 04:02:56 2008 > @@ -378,8 +378,9 @@ > setGeometry(50, 50, 690, 510); > #endif > // Allow the toc and view-source dock widget to be restored if needed. > - findOrBuild("toc", true); > - findOrBuild("view-source", true); > + Dialog * tmp; > + if (tmp = findOrBuild("toc", true)) tmp->showView(); > + if (tmp = findOrBuild("view-source", true)) tmp->showView();
'bodies' of 'if' on new lines...