mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -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
|
* but you are not obligated to do so. If you do not wish to do so, delete this
|
||||||
* exception statement from your version.
|
* exception statement from your version.
|
||||||
*/
|
*/
|
||||||
|
#include <memory>
|
||||||
#include "trackerlistwidget.h"
|
#include "trackerlistwidget.h"
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
@ -210,10 +210,9 @@ void TrackerListWidget::openAddTrackersDialog()
|
||||||
{
|
{
|
||||||
if (!torrent())
|
if (!torrent())
|
||||||
return;
|
return;
|
||||||
|
std::unique_ptr<TrackersAdditionDialog> dialog = std::make_unique<TrackersAdditionDialog>(this, torrent());
|
||||||
auto *dialog = new TrackersAdditionDialog(this, torrent());
|
|
||||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
dialog->open();
|
dialog.release()->open();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackerListWidget::copyTrackerUrl()
|
void TrackerListWidget::copyTrackerUrl()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue