Code clean up

This commit is contained in:
Christophe Dumez
2010-12-30 19:38:53 +00:00
parent 5696944c6f
commit 64f4775a81
10 changed files with 19 additions and 26 deletions

View File

@@ -221,7 +221,7 @@ int QTorrentHandle::num_files() const {
QString QTorrentHandle::filename_at(unsigned int index) const {
Q_ASSERT(index < (unsigned int)torrent_handle::get_torrent_info().num_files());
#if LIBTORRENT_VERSION_MINOR > 15
return filepath_at(index).replace("\\", "/").split("/").last();
return misc::fileName(filepath_at(index));
#else
return misc::toQStringU(torrent_handle::get_torrent_info().file_at(index).path.leaf());
#endif