mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Fix unable to control add torrent dialogs when opened simultaneously
This commit is contained in:
parent
c01aed8d90
commit
ec13d195f8
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue