]> git.lyx.org Git - lyx.git/blobdiff - src/Server.cpp
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / Server.cpp
index 8d9e0c61db1b10f3bda5467cdc97e8ae06ec9d34..e2e9d6ae0aea21c40304c9bac617619ad699b360 100644 (file)
@@ -55,7 +55,6 @@
 #include "support/lassert.h"
 #include "support/lstrings.h"
 #include "support/os.h"
-#include "support/signals.h"
 
 #include <iostream>
 
@@ -867,7 +866,7 @@ int LyXComm::startPipe(string const & file, bool write)
        if (!write) {
                // Make sure not to call read_ready after destruction.
                weak_ptr<void> tracker = tracker_.p();
-               theApp()->registerSocketCallback(fd, [=](){
+               theApp()->registerSocketCallback(fd, [this, tracker](){
                                if (!tracker.expired())
                                        read_ready();
                        });