mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 01:22:33 +00:00
branch: Fix bug #5001: Tab order not preserved when starting lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29533 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ee2bad7dc7
commit
bcf361f389
@ -526,7 +526,17 @@ void GuiView::closeEvent(QCloseEvent * close_event)
|
||||
// e.g. when clicking the close button on a background window.
|
||||
setFocus();
|
||||
|
||||
while (Buffer * b = buffer()) {
|
||||
int splitter_count = d.splitter_->count();
|
||||
for (; splitter_count > 0; --splitter_count) {
|
||||
TabWorkArea * twa = d.tabWorkArea(0);
|
||||
|
||||
int twa_count = twa->count();
|
||||
for (; twa_count > 0; --twa_count) {
|
||||
twa->setCurrentIndex(0);
|
||||
|
||||
GuiWorkArea * wa = twa->currentWorkArea();
|
||||
Buffer * b = &wa->bufferView().buffer();
|
||||
|
||||
if (b->parent()) {
|
||||
// This is a child document, just close the tab
|
||||
// after saving but keep the file loaded.
|
||||
@ -577,7 +587,7 @@ void GuiView::closeEvent(QCloseEvent * close_event)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// Make sure that nothing will use this close to be closed View.
|
||||
guiApp->unregisterView(this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user