mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +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:
@@ -2157,8 +2157,6 @@ EditTrackersDialog::EditTrackersDialog(
|
|||||||
set_transient_for(parent);
|
set_transient_for(parent);
|
||||||
|
|
||||||
urls_view_->get_buffer()->set_text(tr_torrentGetTrackerList(torrent));
|
urls_view_->get_buffer()->set_text(tr_torrentGetTrackerList(torrent));
|
||||||
|
|
||||||
signal_response().connect([this](int response) { on_response(response); });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<EditTrackersDialog> EditTrackersDialog::create(
|
std::unique_ptr<EditTrackersDialog> EditTrackersDialog::create(
|
||||||
@@ -2274,8 +2272,6 @@ AddTrackerDialog::AddTrackerDialog(
|
|||||||
set_transient_for(parent);
|
set_transient_for(parent);
|
||||||
|
|
||||||
gtr_paste_clipboard_url_into_entry(*url_entry_);
|
gtr_paste_clipboard_url_into_entry(*url_entry_);
|
||||||
|
|
||||||
signal_response().connect([this](int response) { on_response(response); });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<AddTrackerDialog> AddTrackerDialog::create(
|
std::unique_ptr<AddTrackerDialog> AddTrackerDialog::create(
|
||||||
|
|||||||
Reference in New Issue
Block a user