From 4c062bf93d684325d9064ef3e7e287a6f8131849 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <philipp@hoerist.com>
Date: Tue, 26 Mar 2019 23:53:12 +0100
Subject: [PATCH] Call show() on new dialogs

- run() was removed from the dialog because it blocks
---
 gajim/gtk/themes.py      | 2 +-
 gajim/history_manager.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gajim/gtk/themes.py b/gajim/gtk/themes.py
index 269d01dd24..fd3c711fd9 100644
--- a/gajim/gtk/themes.py
+++ b/gajim/gtk/themes.py
@@ -325,7 +325,7 @@ class Themes(Gtk.ApplicationWindow):
             _('Do you want to permanently delete this theme?'),
             [DialogButton.make('Cancel'),
              DialogButton.make('Delete', callback=_remove_theme)],
-            transient_for=self)
+            transient_for=self).show()
 
     @staticmethod
     def _on_destroy(*args):
diff --git a/gajim/history_manager.py b/gajim/history_manager.py
index 74bfdc2576..d78883de14 100644
--- a/gajim/history_manager.py
+++ b/gajim/history_manager.py
@@ -577,7 +577,7 @@ class HistoryManager:
                      paths_len, liststore[list_of_paths[0]][0]),
             [DialogButton.make('Cancel'),
              DialogButton.make('Delete', callback=on_ok)],
-            transient_for=self._ui.history_manager_window)
+            transient_for=self._ui.history_manager_window).show()
 
     def _delete_logs(self, liststore, list_of_paths):
         paths_len = len(list_of_paths)
@@ -614,7 +614,7 @@ class HistoryManager:
                      paths_len),
             [DialogButton.make('Cancel'),
              DialogButton.make('Delete', callback=on_ok)],
-            transient_for=self._ui.history_manager_window)
+            transient_for=self._ui.history_manager_window).show()
 
     def on_search_db_button_clicked(self, widget):
         text = self._ui.search_entry.get_text()
-- 
GitLab