mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
Update trackerlistwidget.cpp
This commit is contained in:
parent
87fb4e5868
commit
832f395195
1 changed files with 3 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
|||
* but you are not obligated to do so. If you do not wish to do so, delete this
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
#include "trackerlistwidget.h"
|
||||
|
||||
#include <QAction>
|
||||
|
@ -210,10 +210,9 @@ void TrackerListWidget::openAddTrackersDialog()
|
|||
{
|
||||
if (!torrent())
|
||||
return;
|
||||
|
||||
auto *dialog = new TrackersAdditionDialog(this, torrent());
|
||||
std::unique_ptr<TrackersAdditionDialog> dialog = std::make_unique<TrackersAdditionDialog>(this, torrent());
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
dialog->open();
|
||||
dialog.release()->open();
|
||||
}
|
||||
|
||||
void TrackerListWidget::copyTrackerUrl()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue