Correct indentation. This was postponed from the previous commit r29530 for clarity.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29531 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-05-04 11:50:55 +00:00
parent 2b21cd2f4e
commit 0842e988e7

View File

@ -536,11 +536,11 @@ void GuiView::closeEvent(QCloseEvent * close_event)
setCurrentWorkArea(currentMainWorkArea());
int splitter_count = d.splitter_->count();
for (; splitter_count > 0; --splitter_count) {
for (; splitter_count; --splitter_count) {
TabWorkArea * twa = d.tabWorkArea(0);
int twa_count = twa->count();
for (; twa_count > 0; --twa_count) {
for (; twa_count; --twa_count) {
twa->setCurrentIndex(0);
GuiWorkArea * wa = twa->currentWorkArea();
@ -576,8 +576,8 @@ void GuiView::closeEvent(QCloseEvent * close_event)
if (id_ == ids[i])
continue;
if (guiApp->view(ids[i]).workArea(*b)) {
// FIXME 1: should we put an alert box here that the buffer
// is viewed elsewhere?
// FIXME 1: should we put an alert box here
// that the buffer is viewed elsewhere?
// FIXME 2: should we try to save this buffer in any case?
//saveBuffer(b);
@ -589,7 +589,8 @@ void GuiView::closeEvent(QCloseEvent * close_event)
break;
}
}
// closeBuffer() needs buffer workArea still alive and set as currrent one, and destroys it
// closeBuffer() needs buffer workArea still alive and
// set as currrent one, and destroys it
if (b && !closeBuffer(*b, true)) {
closing_ = false;
close_event->ignore();