fix: make remove-torrent dialogs modal in GTK client (#2602)

Followup to #2443
This commit is contained in:
Charles Kerr
2022-02-10 14:31:11 -06:00
committed by GitHub
parent 376e8b3782
commit ec6a92d761
2 changed files with 5 additions and 4 deletions

View File

@@ -101,10 +101,10 @@ void gtr_confirm_remove(
auto d = std::make_shared<Gtk::MessageDialog>( auto d = std::make_shared<Gtk::MessageDialog>(
parent, parent,
gtr_sprintf("<big><b>%s</b></big>", primary_text), gtr_sprintf("<big><b>%s</b></big>", primary_text),
true, true /*use_markup*/,
Gtk::MESSAGE_QUESTION, Gtk::MESSAGE_QUESTION,
Gtk::BUTTONS_NONE, Gtk::BUTTONS_NONE,
false); true /*modal*/);
if (!secondary_text.empty()) if (!secondary_text.empty())
{ {

View File

@@ -516,9 +516,10 @@ void gtr_unrecognized_url_dialog(Gtk::Widget& parent, Glib::ustring const& url)
auto w = std::make_shared<Gtk::MessageDialog>( auto w = std::make_shared<Gtk::MessageDialog>(
*window, *window,
_("Unrecognized URL"), _("Unrecognized URL"),
false, false /*use markup*/,
Gtk::MESSAGE_ERROR, Gtk::MESSAGE_ERROR,
Gtk::BUTTONS_CLOSE); Gtk::BUTTONS_CLOSE,
true /*modal*/);
gstr += gtr_sprintf(_("Transmission doesn't know how to use \"%s\""), url); gstr += gtr_sprintf(_("Transmission doesn't know how to use \"%s\""), url);