mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
* 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
This commit is contained in:
parent
f099bf461e
commit
75d0226ce8
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user