mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 22:41:09 +00:00
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. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15685 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
822ef847ed
commit
5cadc33792
@ -150,6 +150,9 @@ void GuiView::init()
|
|||||||
QObject::connect(&statusbar_timer_, SIGNAL(timeout()),
|
QObject::connect(&statusbar_timer_, SIGNAL(timeout()),
|
||||||
this, SLOT(update_view_state_qt()));
|
this, SLOT(update_view_state_qt()));
|
||||||
|
|
||||||
|
if (!work_area_->bufferView().buffer() && !theBufferList().empty())
|
||||||
|
setBuffer(theBufferList().first());
|
||||||
|
|
||||||
// make sure the buttons are disabled if needed
|
// make sure the buttons are disabled if needed
|
||||||
updateToolbars();
|
updateToolbars();
|
||||||
updateLayoutChoice();
|
updateLayoutChoice();
|
||||||
|
@ -288,6 +288,9 @@ void GuiWorkArea::dropEvent(QDropEvent* event)
|
|||||||
|
|
||||||
void GuiWorkArea::focusInEvent(QFocusEvent * /*event*/)
|
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();
|
startBlinkingCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user