mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -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
|
||||
m_ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
m_ui->lblMetaLoading->setVisible(false);
|
||||
m_ui->progMetaLoading->setVisible(false);
|
||||
|
||||
|
@ -244,11 +245,7 @@ void AddNewTorrentDialog::show(QString source, const BitTorrent::AddTorrentParam
|
|||
ok = dlg->loadTorrent(source);
|
||||
|
||||
if (ok)
|
||||
#ifdef Q_OS_MAC
|
||||
dlg->exec();
|
||||
#else
|
||||
dlg->open();
|
||||
#endif
|
||||
dlg->QDialog::show();
|
||||
else
|
||||
delete dlg;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue