1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

Don't show duplicate add/edit tracker error dialogs (#3898)

Since we're already overriding `on_response()`, there's no point in
connecting `signal_response` to it, making it being called twice.

Broken-by: #3781
This commit is contained in:
Mike Gelfand 2022-10-07 13:09:48 -07:00 committed by GitHub
parent 32a1429047
commit aeaa6ca52f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2157,8 +2157,6 @@ EditTrackersDialog::EditTrackersDialog(
set_transient_for(parent);
urls_view_->get_buffer()->set_text(tr_torrentGetTrackerList(torrent));
signal_response().connect([this](int response) { on_response(response); });
}
std::unique_ptr<EditTrackersDialog> EditTrackersDialog::create(
@ -2274,8 +2272,6 @@ AddTrackerDialog::AddTrackerDialog(
set_transient_for(parent);
gtr_paste_clipboard_url_into_entry(*url_entry_);
signal_response().connect([this](int response) { on_response(response); });
}
std::unique_ptr<AddTrackerDialog> AddTrackerDialog::create(