Fix "Skip hash check" feature in torrent import dialog (closes #128)

This commit is contained in:
Christophe Dumez 2012-09-29 13:59:46 +03:00
parent c7f1f52f1c
commit 51aae059e3

View file

@ -143,6 +143,7 @@ void TorrentImportDlg::on_browseContentBtn_clicked()
#endif #endif
bool size_mismatch = false; bool size_mismatch = false;
QDir content_dir(m_contentPath); QDir content_dir(m_contentPath);
content_dir.cdUp();
// Check file sizes // Check file sizes
for (int i=0; i<t->num_files(); ++i) { for (int i=0; i<t->num_files(); ++i) {
#if LIBTORRENT_VERSION_MINOR > 15 #if LIBTORRENT_VERSION_MINOR > 15