mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 22:14:32 +00:00
Don't close downloadFromURL dialog when showing empty url warning
This commit is contained in:
parent
112d4b8c71
commit
3e6706a371
@ -80,7 +80,6 @@ class downloadFromURL : public QDialog, private Ui::downloadFromURL{
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void on_downloadButton_clicked() {
|
void on_downloadButton_clicked() {
|
||||||
close();
|
|
||||||
QString urls = textUrls->toPlainText();
|
QString urls = textUrls->toPlainText();
|
||||||
QStringList url_list = urls.split(QString::fromUtf8("\n"));
|
QStringList url_list = urls.split(QString::fromUtf8("\n"));
|
||||||
QString url;
|
QString url;
|
||||||
@ -97,6 +96,7 @@ class downloadFromURL : public QDialog, private Ui::downloadFromURL{
|
|||||||
QMessageBox::critical(0, tr("No URL entered"), tr("Please type at least one URL."));
|
QMessageBox::critical(0, tr("No URL entered"), tr("Please type at least one URL."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
close();
|
||||||
emit urlsReadyToBeDownloaded(url_list_cleaned);
|
emit urlsReadyToBeDownloaded(url_list_cleaned);
|
||||||
qDebug("Emitted urlsReadytobedownloaded signal");
|
qDebug("Emitted urlsReadytobedownloaded signal");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user