From 44e18e9107f8bd664b6b9dd8a01bdc1c50e3db0d Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 22 May 2008 21:08:34 +0000 Subject: [PATCH] Disable a socket notifier when unregistering it. This avoids the following Qt warnings when performing a reverse dvi search: QSocketNotifier: Multiple socket notifiers for same socket 9 and type Read QSocketNotifier: Invalid socket 15 and type 'Read', disabling... occurring when using the lyxserver or the lyxclient, respectively. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24890 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 1640884dfb..43388ebb2a 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -663,6 +663,7 @@ void GuiApplication::socketDataReceived(int fd) void GuiApplication::unregisterSocketCallback(int fd) { + socket_notifiers_[fd]->setEnabled(false); socket_notifiers_.erase(fd); } -- 2.39.2