mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Fix unable to control add torrent dialogs when opened simultaneously
This commit is contained in:
@@ -95,6 +95,7 @@ AddNewTorrentDialog::AddNewTorrentDialog(const BitTorrent::AddTorrentParams &inP
|
|||||||
// TODO: set dialog file properties using m_torrentParams.filePriorities
|
// TODO: set dialog file properties using m_torrentParams.filePriorities
|
||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
m_ui->lblMetaLoading->setVisible(false);
|
m_ui->lblMetaLoading->setVisible(false);
|
||||||
m_ui->progMetaLoading->setVisible(false);
|
m_ui->progMetaLoading->setVisible(false);
|
||||||
|
|
||||||
@@ -244,11 +245,7 @@ void AddNewTorrentDialog::show(QString source, const BitTorrent::AddTorrentParam
|
|||||||
ok = dlg->loadTorrent(source);
|
ok = dlg->loadTorrent(source);
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
#ifdef Q_OS_MAC
|
dlg->QDialog::show();
|
||||||
dlg->exec();
|
|
||||||
#else
|
|
||||||
dlg->open();
|
|
||||||
#endif
|
|
||||||
else
|
else
|
||||||
delete dlg;
|
delete dlg;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user