vino r828 - in trunk: . server



Author: jwendell
Date: Thu Mar 13 12:48:52 2008
New Revision: 828
URL: http://svn.gnome.org/viewvc/vino?rev=828&view=rev

Log:
2008-03-13  Jonh Wendell  <jwendell gnome org>

	* server/vino-status-icon.c (vino_status_icon_remove_client):
	Ignore if the client being disconnected is not in our list of
	connected clients, thus avoiding the screen to be locked when
	that option is enabled. Closes #522058.


Modified:
   trunk/ChangeLog
   trunk/server/vino-status-icon.c

Modified: trunk/server/vino-status-icon.c
==============================================================================
--- trunk/server/vino-status-icon.c	(original)
+++ trunk/server/vino-status-icon.c	Thu Mar 13 12:48:52 2008
@@ -517,6 +517,9 @@
   g_return_val_if_fail (VINO_IS_STATUS_ICON (icon), TRUE);
   g_return_val_if_fail (client != NULL, TRUE);
 
+  if (!icon->priv->clients)
+    return FALSE;
+
   icon->priv->clients = g_slist_remove (icon->priv->clients, client);
 
   vino_status_icon_update_state (icon);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]