Quit notification from Qt is not needed anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31240 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-08-30 15:31:22 +00:00
parent 40620bd83f
commit 2d09fff374

View File

@ -93,14 +93,6 @@ private:
namespace {
bool closing_ = false;
void closing()
{
closing_ = true;
}
char * errormsg()
{
void * msgbuf;
@ -130,8 +122,6 @@ DWORD WINAPI pipeServerWrapper(void * arg)
LyXComm::LyXComm(string const & pip, Server * cli, ClientCallbackfct ccb)
: pipename_(pip), client_(cli), clientcb_(ccb), stopserver_(0)
{
// Ask Qt to notify us on quit.
qAddPostRoutine(closing);
ready_ = false;
openConnection();
}
@ -379,7 +369,7 @@ bool LyXComm::event(QEvent * e)
BOOL LyXComm::checkStopServer()
{
return WaitForSingleObject(stopserver_, 0) == WAIT_OBJECT_0 || closing_;
return WaitForSingleObject(stopserver_, 0) == WAIT_OBJECT_0;
}
@ -508,7 +498,7 @@ void LyXComm::closeConnection()
}
if (!ready_) {
LYXERR0("LyXComm: Already disconnected");
LYXERR(Debug::LYXSERVER, "LyXComm: Already disconnected");
return;
}