[gnome-boxes/gnome-3-12] app: Correct the logic of selecting URI



commit 22f32a621fc6c29e867359ddd69ceae7a72519aa
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed May 21 15:24:51 2014 +0100

    app: Correct the logic of selecting URI
    
    Seems the logic of selecting the argument to Wizard.open_with_uri() was
    inverted.

 src/app.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index fdf44db..8f83b68 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -248,11 +248,11 @@ private class Boxes.App: Gtk.Application, Boxes.UI {
 
                 if (file.query_exists ()) {
                     if (is_uri)
-                        window.wizard.open_with_uri (file.get_uri ());
-                    else
                         window.wizard.open_with_uri (arg);
+                    else
+                        window.wizard.open_with_uri (file.get_uri ());
                 } else if (is_uri)
-                    window.wizard.open_with_uri (file.get_uri ());
+                    window.wizard.open_with_uri (arg);
                 else
                     open_name (arg);
             });


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