]> git.lyx.org Git - features.git/commitdiff
Disable a socket notifier when unregistering it.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 22 May 2008 21:08:34 +0000 (21:08 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 22 May 2008 21:08:34 +0000 (21:08 +0000)
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

index 1640884dfbe35bca3b649190b5c226fbff7c7424..43388ebb2a9efcf3b978c149f5a9ae78e8a41a93 100644 (file)
@@ -663,6 +663,7 @@ void GuiApplication::socketDataReceived(int fd)
 
 void GuiApplication::unregisterSocketCallback(int fd)
 {
+       socket_notifiers_[fd]->setEnabled(false);
        socket_notifiers_.erase(fd);
 }