[meld/meld-3-18] meldapp: Always show a window created in `new_window()`
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/meld-3-18] meldapp: Always show a window created in `new_window()`
- Date: Tue, 1 Jan 2019 20:36:07 +0000 (UTC)
commit 3aeb083f9f9ba117b892ce855770d87d75b562e1
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Dec 7 08:18:49 2018 +1000
meldapp: Always show a window created in `new_window()`
If we create multiple windows but one of them never gets activated, then
it won't ever be seen by the user.
Now we never *should* create multiple windows in one round, but that's a
different problem.
meld/meldapp.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index 72b5385b..037ebbe1 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -150,7 +150,9 @@ class MeldApp(Gtk.Application):
paths = [f.get_path() for f in files]
try:
- return window.open_paths(paths, **kwargs)
+ tab = window.open_paths(paths, **kwargs)
+ window.widget.show()
+ return tab
except ValueError:
if not new_tab:
self.remove_window(window.widget)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]