Re: [PATCH] Don't display authentication windows again if cancelled



On Fri, 2005-10-07 at 20:53 +0200, Christian Neumair wrote:
> Together with [1] this patch ensures that authentication windows are not
> shown again if they're cancelled.

         if (vfs_result_code == GNOME_VFS_OK
             || vfs_result_code == GNOME_VFS_ERROR_NOT_SUPPORTED
-            || vfs_result_code == GNOME_VFS_ERROR_INVALID_URI) {
+            || vfs_result_code == GNOME_VFS_ERROR_INVALID_URI
+	    || vfs_result_code != GNOME_VFS_ERROR_CANCELLED) {

This part looks wrong (if result is a, b, or c, or result is anything
but cancelled, the last bit overrides the first). I don't think its
needed at all, is it?


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a maverick Amish gentleman spy with a winning smile and a way with the 
ladies. She's a chain-smoking cigar-chomping socialite with someone else's 
memories. They fight crime! 




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