From: Michael Schmitt Date: Sat, 2 Dec 2006 21:27:31 +0000 (+0000) Subject: * src/lyxfunc.C: X-Git-Tag: 1.6.10~11675 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=75d0226ce86b8f926aed85a79eed69f50aad9c8f;p=lyx.git * src/lyxfunc.C: * src/frontends/qt4/GuiView.C: * src/lyx_main.C: fix various typos in comments git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16141 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.C b/src/frontends/qt4/GuiView.C index df06173e36..63769e1f13 100644 --- a/src/frontends/qt4/GuiView.C +++ b/src/frontends/qt4/GuiView.C @@ -157,8 +157,8 @@ GuiView::GuiView(int id) { // Qt bug? signal lastWindowClosed does not work setAttribute(Qt::WA_QuitOnClose, false); - // FIXME: enable to avoid memory leaks but it prduces a crash - // after a new window has been close (click into the menu) + // FIXME: the following statement avoids memory leaks but produces a + // crash after a new window has been closed (click into the menu) //setAttribute(Qt::WA_DeleteOnClose, false); // hardcode here the platform specific icon size @@ -221,8 +221,8 @@ void GuiView::closeEvent(QCloseEvent * close_event) theApp()->gui().unregisterView(id()); if (theApp()->gui().viewIds().empty()) { - // this is the place were we leave the frontend - // and is the only point were we begin to quit + // this is the place where we leave the frontend. + // it is the only point at which we start quitting. saveGeometry(); theBufferList().quitWriteAll(); close_event->accept(); diff --git a/src/lyx_main.C b/src/lyx_main.C index a029f52e41..caa2a2b689 100644 --- a/src/lyx_main.C +++ b/src/lyx_main.C @@ -439,8 +439,8 @@ void LyX::prepareExit() pimpl_->lyx_socket_.reset(); } - // Kill the application object before exiting. This avoid crash - // on exit on Linux. + // Kill the application object before exiting. This avoids crashes + // when exiting on Linux. if (pimpl_->application_) pimpl_->application_.reset(); } diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 5a5e955dd9..03d621e4d1 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1045,7 +1045,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd) // save the geometry of the current view lyx_view_->saveGeometry(); - // quitting is trigged by the gui code (leaving the event loop) + // quitting is triggered by the gui code (leaving the event loop) theApp()->gui().closeAllViews(); break;