Abdelrazak Younes wrote: > Peter Kümmel wrote: >> Abdelrazak Younes wrote: >> This does not help. But after a CTRL-N all is fine, >> so it couldn't be that hard for someone who knows >> all the details. ;) > > Yeah, it was not that hard (see below). It's just that I don't have much > time. > > Abdel. >
Great, it is fixed now. > This commit initialise correctly the tab bar in a new window. > > * GuiView::init(): switch to the first avalaible buffer if any. > > * GuiWorkArea::focusInEvent(): update the LyXView tab bar there. > > Modified: > lyx-devel/trunk/src/frontends/qt4/GuiView.C > lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.C > > Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.C > URL: > http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiView.C?rev=15685 > > ============================================================================== > > --- lyx-devel/trunk/src/frontends/qt4/GuiView.C (original) > +++ lyx-devel/trunk/src/frontends/qt4/GuiView.C Wed Nov 1 23:57:32 2006 > @@ -149,6 +149,9 @@ > > QObject::connect(&statusbar_timer_, SIGNAL(timeout()), > this, SLOT(update_view_state_qt())); > + > + if (!work_area_->bufferView().buffer() && !theBufferList().empty()) > + setBuffer(theBufferList().first()); > > // make sure the buttons are disabled if needed > updateToolbars(); > > Modified: lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.C > URL: > http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.C?rev=15685 > > ============================================================================== > > --- lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.C (original) > +++ lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.C Wed Nov 1 23:57:32 > 2006 > @@ -288,6 +288,9 @@ > > void GuiWorkArea::focusInEvent(QFocusEvent * /*event*/) > { > + // FIXME: it would be better to send a signal "newBuffer()" > + // in BufferList that could be connected to the different tabbar. > + lyx_view_.updateTab(); > startBlinkingCursor(); > } > > -- Peter Kümmel