mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
- Fix typo in the code
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user