Browse Source

Merge pull request #12828 from thalieht/rootfolder

Disable "Keep top-level folder" checkbox if torrent doesn't have root folder
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
7f6279819d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/addnewtorrentdialog.cpp

2
src/gui/addnewtorrentdialog.cpp

@ -300,6 +300,7 @@ bool AddNewTorrentDialog::loadTorrentImpl() @@ -300,6 +300,7 @@ bool AddNewTorrentDialog::loadTorrentImpl()
m_ui->labelHashData->setText(m_hash);
setupTreeview();
TMMChanged(m_ui->comboTTM->currentIndex());
m_ui->keepTopLevelFolderCheckBox->setEnabled(m_torrentInfo.hasRootFolder());
return true;
}
@ -610,6 +611,7 @@ void AddNewTorrentDialog::updateMetadata(const BitTorrent::TorrentInfo &info) @@ -610,6 +611,7 @@ void AddNewTorrentDialog::updateMetadata(const BitTorrent::TorrentInfo &info)
// Update UI
setupTreeview();
setMetadataProgressIndicator(false, tr("Metadata retrieval complete"));
m_ui->keepTopLevelFolderCheckBox->setEnabled(m_torrentInfo.hasRootFolder());
}
void AddNewTorrentDialog::setMetadataProgressIndicator(bool visibleIndicator, const QString &labelText)

Loading…
Cancel
Save