Browse Source

- Fix right click menu in tracker list and in peer list (Thanks Heavyjoost)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
6ede368f63
  1. 1
      src/peerlistwidget.cpp
  2. 1
      src/trackerlist.h

1
src/peerlistwidget.cpp

@ -143,6 +143,7 @@ void PeerListWidget::showPeerListMenu(QPoint) {
} }
if(empty_menu) return; if(empty_menu) return;
QAction *act = menu.exec(QCursor::pos()); QAction *act = menu.exec(QCursor::pos());
if(act == 0) return;
if(act == addPeerAct) { if(act == addPeerAct) {
libtorrent::asio::ip::tcp::endpoint ep = PeerAdditionDlg::askForPeerEndpoint(); libtorrent::asio::ip::tcp::endpoint ep = PeerAdditionDlg::askForPeerEndpoint();
if(ep != libtorrent::asio::ip::tcp::endpoint()) { if(ep != libtorrent::asio::ip::tcp::endpoint()) {

1
src/trackerlist.h

@ -284,6 +284,7 @@ public slots:
delAct = menu.addAction(QIcon(":/Icons/oxygen/list-remove.png"), "Remove tracker"); delAct = menu.addAction(QIcon(":/Icons/oxygen/list-remove.png"), "Remove tracker");
} }
QAction *act = menu.exec(QCursor::pos()); QAction *act = menu.exec(QCursor::pos());
if(act == 0) return;
if(act == addAct) { if(act == addAct) {
askForTrackers(); askForTrackers();
return; return;

Loading…
Cancel
Save