mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
40620bd83f
commit
2d09fff374
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user