[blam] ItemView: set the ignore return value earlier



commit 450d3a4219bff949ec64091211532bbd34d17cf3
Author: Carlos Martín Nieto <cmn dwim me>
Date:   Sun Jun 16 02:06:55 2013 +0200

    ItemView: set the ignore  return value earlier
    
    Setting it after we attempt to open the url will cause errors to exit
    the try block without setting it, letting webkit think it should
    display the target inside out window. Reverse the order to avoid this.

 src/ItemView.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ItemView.cs b/src/ItemView.cs
index 8ae1400..8a630a0 100644
--- a/src/ItemView.cs
+++ b/src/ItemView.cs
@@ -75,8 +75,8 @@ namespace Imendio.Blam {
                         * (as we know he was hovering). Thus, try to open it on the browser
                         */
                        if(args.Request.Uri.Equals(last_link)){
-                               GtkBeans.Global.ShowUri(null, args.Request.Uri);
                                args.RetVal = NavigationResponse.Ignore;
+                               GtkBeans.Global.ShowUri(null, args.Request.Uri);
                        } else {
                                /* Otherwise, it's part of the post, so accept it (like the facebook iframe) 
*/
                                args.RetVal = NavigationResponse.Accept;


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