[meld] meldapp: Fix call ordering to present only our new window (bgo#750885)



commit 6b57750002401c4a0acac02391d4d69e6cc4cc65
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Jun 20 07:53:17 2015 +1000

    meldapp: Fix call ordering to present only our new window (bgo#750885)

 meld/meldapp.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index 2ef74f8..198b77c 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -69,7 +69,6 @@ class MeldApp(Gtk.Application):
         self.get_active_window().present()
 
     def do_command_line(self, command_line):
-        self.activate()
         tab = self.parse_args(command_line)
 
         if isinstance(tab, int):
@@ -87,7 +86,7 @@ class MeldApp(Gtk.Application):
         window = self.get_active_window().meldwindow
         if not window.has_pages():
             window.append_new_comparison()
-        window.widget.present()
+        self.activate()
         return 0
 
     def do_window_removed(self, widget):


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