mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 21:14:33 +00:00
- Fix typo in the code
This commit is contained in:
parent
fe62efa145
commit
950aa497c6
@ -221,7 +221,7 @@ public slots:
|
|||||||
|
|
||||||
// Ask the user for new trackers and add them to the torrent
|
// Ask the user for new trackers and add them to the torrent
|
||||||
void askForTrackers(){
|
void askForTrackers(){
|
||||||
QStringList trackers = TrackersAdditionDlg::asForTrackers();
|
QStringList trackers = TrackersAdditionDlg::askForTrackers();
|
||||||
if(!trackers.empty()) {
|
if(!trackers.empty()) {
|
||||||
QTorrentHandle h = properties->getCurrentTorrent();
|
QTorrentHandle h = properties->getCurrentTorrent();
|
||||||
if(!h.is_valid()) return;
|
if(!h.is_valid()) return;
|
||||||
|
@ -49,7 +49,7 @@ class TrackersAdditionDlg : public QDialog, private Ui::TrackersAdditionDlg{
|
|||||||
return trackers_list->toPlainText().trimmed().split("\n");
|
return trackers_list->toPlainText().trimmed().split("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static QStringList asForTrackers() {
|
static QStringList askForTrackers() {
|
||||||
QStringList trackers;
|
QStringList trackers;
|
||||||
TrackersAdditionDlg dlg;
|
TrackersAdditionDlg dlg;
|
||||||
if(dlg.exec() == QDialog::Accepted) {
|
if(dlg.exec() == QDialog::Accepted) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user