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



commit 507e1ac99d77531f123ed800c6b05c07e099ae21
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 6360110..2b6d647 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -239,11 +239,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]