[meld] meldapp: Fix command-line loading of recent files



commit d4917db0a3f1ca4587768fe46db756e405ae8d53
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jun 23 07:18:41 2019 +1000

    meldapp: Fix command-line loading of recent files

 meld/meldapp.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index 75e4f766..122a72ad 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -294,7 +294,8 @@ class MeldApp(Gtk.Application):
             comparison_file_path = os.path.expanduser(path)
             gio_file = Gio.File.new_for_path(comparison_file_path)
             try:
-                tab = self.get_meld_window().append_recent(gio_file.get_uri())
+                tab = self.get_active_window().append_recent(
+                    gio_file.get_uri())
             except (IOError, ValueError):
                 parser.local_error(_("Error reading saved comparison file"))
             if parser.should_exit:


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