{
// 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
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();
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();
}
// 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;