diff --git a/gajim/roster_window.py b/gajim/roster_window.py
index 4bc8265da4a79d50e5806ea17b5033c42d0e5121..e3a97d95055c191ebb82620a82f5c8ec27925445 100644
--- a/gajim/roster_window.py
+++ b/gajim/roster_window.py
@@ -2828,7 +2828,7 @@ class RosterWindow:
             sectext = _('You will no longer be able to send and receive '
                 'messages to contacts from these transports: %s') % jids
         dialogs.ConfirmationDialog(pritext, sectext,
-            on_response_ok = (remove, list_))
+            on_response_ok = (remove, list_), transient_for=self.window)
 
     def _nec_blocking(self, obj):
         if obj.unblock_all or obj.blocklist: