Code clean up

This commit is contained in:
Christophe Dumez
2010-11-13 21:15:52 +00:00
parent 9c13ed2635
commit 126e2e7c75
31 changed files with 279 additions and 309 deletions

View File

@@ -179,7 +179,7 @@ QString TorrentImportDlg::getContentPath() const
return m_contentPath;
}
void TorrentImportDlg::importTorrent(QBtSession *BTSession)
void TorrentImportDlg::importTorrent()
{
TorrentImportDlg dlg;
if(dlg.exec()) {
@@ -195,7 +195,7 @@ void TorrentImportDlg::importTorrent(QBtSession *BTSession)
TorrentTempData::setSeedingMode(hash, dlg.skipFileChecking());
#endif
qDebug("Adding the torrent to the session...");
BTSession->addTorrent(torrent_path);
QBtSession::instance()->addTorrent(torrent_path);
// Remember the last opened folder
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
settings.setValue(QString::fromUtf8("MainWindowLastDir"), torrent_path);