Author: mir3x
Date: Mon Aug 22 22:49:01 2016
New Revision: 33671

URL: http://svn.gna.org/viewcvs/freeciv?rev=33671&view=rev
Log:
Disable/Enable QSocketNotifier on Windows only.

See bug #24909


Modified:
    branches/S2_5/client/gui-qt/fc_client.cpp

Modified: branches/S2_5/client/gui-qt/fc_client.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/fc_client.cpp?rev=33671&r1=33670&r2=33671&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/fc_client.cpp   (original)
+++ branches/S2_5/client/gui-qt/fc_client.cpp   Mon Aug 22 22:49:01 2016
@@ -433,9 +433,13 @@
 ****************************************************************************/
 void fc_client::server_input(int sock)
 {
+#if defined(Q_WS_WIN)
   server_notifier->setEnabled(false);
+#endif
   input_from_server(sock);
+#if defined(Q_WS_WIN)
   server_notifier->setEnabled(true);
+#endif
 }
 
 /****************************************************************************


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to