mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-30 16:34:16 +00:00
Trackerlist: Change 0 to nullptr
This commit is contained in:
parent
e00be240b0
commit
e82a1522c8
@ -483,23 +483,23 @@ void TrackerList::showTrackerListMenu(QPoint) {
|
|||||||
QMenu menu;
|
QMenu menu;
|
||||||
// Add actions
|
// Add actions
|
||||||
QAction *addAct = menu.addAction(GuiIconProvider::instance()->getIcon("list-add"), tr("Add a new tracker..."));
|
QAction *addAct = menu.addAction(GuiIconProvider::instance()->getIcon("list-add"), tr("Add a new tracker..."));
|
||||||
QAction *copyAct = 0;
|
QAction *copyAct = nullptr;
|
||||||
QAction *delAct = 0;
|
QAction *delAct = nullptr;
|
||||||
QAction *editAct = 0;
|
QAction *editAct = nullptr;
|
||||||
if (!getSelectedTrackerItems().isEmpty()) {
|
if (!getSelectedTrackerItems().isEmpty()) {
|
||||||
delAct = menu.addAction(GuiIconProvider::instance()->getIcon("list-remove"), tr("Remove tracker"));
|
delAct = menu.addAction(GuiIconProvider::instance()->getIcon("list-remove"), tr("Remove tracker"));
|
||||||
copyAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-copy"), tr("Copy tracker URL"));
|
copyAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-copy"), tr("Copy tracker URL"));
|
||||||
editAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-rename"),tr("Edit selected tracker URL"));
|
editAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-rename"),tr("Edit selected tracker URL"));
|
||||||
}
|
}
|
||||||
QAction *reannounceSelAct = NULL;
|
QAction *reannounceSelAct = nullptr;
|
||||||
QAction *reannounceAct = NULL;
|
QAction *reannounceAct = nullptr;
|
||||||
if (!torrent->isPaused()) {
|
if (!torrent->isPaused()) {
|
||||||
reannounceSelAct = menu.addAction(GuiIconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce to selected trackers"));
|
reannounceSelAct = menu.addAction(GuiIconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce to selected trackers"));
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
reannounceAct = menu.addAction(GuiIconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce to all trackers"));
|
reannounceAct = menu.addAction(GuiIconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce to all trackers"));
|
||||||
}
|
}
|
||||||
QAction *act = menu.exec(QCursor::pos());
|
QAction *act = menu.exec(QCursor::pos());
|
||||||
if (act == 0) return;
|
if (act == nullptr) return;
|
||||||
if (act == addAct) {
|
if (act == addAct) {
|
||||||
askForTrackers();
|
askForTrackers();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user