]> git.lyx.org Git - features.git/commitdiff
Quit notification from Qt is not needed anymore.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 30 Aug 2009 15:31:22 +0000 (15:31 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 30 Aug 2009 15:31:22 +0000 (15:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31240 a592a061-630c-0410-9148-cb99ea01b6c8

src/Server.cpp

index 4c92c89cbf52a879c672386305a4718a1bb991cf..2bcd85ccc375150ff5c3b819aa9a030953a3a28b 100644 (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;
        }