vinagre r623 - trunk/src



Author: jwendell
Date: Fri Feb 20 17:58:00 2009
New Revision: 623
URL: http://svn.gnome.org/viewvc/vinagre?rev=623&view=rev

Log:
Fix the logic in looking for a stored password, it's broken since last commit

Modified:
   trunk/src/vinagre-tab.c

Modified: trunk/src/vinagre-tab.c
==============================================================================
--- trunk/src/vinagre-tab.c	(original)
+++ trunk/src/vinagre-tab.c	Fri Feb 20 17:58:00 2009
@@ -725,7 +725,7 @@
   if (need_password || need_username)
     {
       vinagre_tab_find_credentials (tab, &username, &password);
-      if (!username || !password)
+      if ( (need_username && !username) || (need_password && !password) )
 	{
 	  if (!ask_credential (tab, need_username, need_password, &username, &password))
 	    {



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