diff options
author | Markus Brueffer <markus@FreeBSD.org> | 2008-01-25 09:37:10 +0800 |
---|---|---|
committer | Markus Brueffer <markus@FreeBSD.org> | 2008-01-25 09:37:10 +0800 |
commit | 27aed2ca673b69a172e514518274e4a14b462ad5 (patch) | |
tree | 8f67c5bd015a861a3631a975bcd6f21768ab2741 /net-p2p/ktorrent/files | |
parent | 4fdfb6781f40437803a02caeb5a8001d04a260a5 (diff) | |
download | freebsd-ports-gnome-27aed2ca673b69a172e514518274e4a14b462ad5.tar.gz freebsd-ports-gnome-27aed2ca673b69a172e514518274e4a14b462ad5.tar.zst freebsd-ports-gnome-27aed2ca673b69a172e514518274e4a14b462ad5.zip |
Update to version 2.2.4
PR: ports/118964
Submitted by: Yarodin <yarodin@gmail.com>
Diffstat (limited to 'net-p2p/ktorrent/files')
-rw-r--r-- | net-p2p/ktorrent/files/patch-apps-ktorrent-fileselectdlg.cpp | 34 | ||||
-rw-r--r-- | net-p2p/ktorrent/files/patch-libktorrent-util-fileops.cpp | 11 |
2 files changed, 0 insertions, 45 deletions
diff --git a/net-p2p/ktorrent/files/patch-apps-ktorrent-fileselectdlg.cpp b/net-p2p/ktorrent/files/patch-apps-ktorrent-fileselectdlg.cpp deleted file mode 100644 index f57f053e75c9..000000000000 --- a/net-p2p/ktorrent/files/patch-apps-ktorrent-fileselectdlg.cpp +++ /dev/null @@ -1,34 +0,0 @@ ---- apps/ktorrent/fileselectdlg.cpp 2007/10/07 11:30:13 722461 -+++ apps/ktorrent/fileselectdlg.cpp 2007/10/07 11:32:52 722462 -@@ -94,11 +94,20 @@ - void FileSelectDlg::accept() - { - QStringList pe_ex; -+ -+ QString dn = m_downloadLocation->url(); -+ if (!dn.endsWith(bt::DirSeparator())) -+ dn += bt::DirSeparator(); - - for (Uint32 i = 0;i < tc->getNumFiles();i++) - { - kt::TorrentFileInterface & file = tc->getTorrentFile(i); - -+ // check for preexsting files -+ QString path = dn + tc->getStats().torrent_name + bt::DirSeparator() + file.getPath(); -+ if (bt::Exists(path)) -+ file.setPreExisting(true); -+ - if (file.doNotDownload() && file.isPreExistingFile()) - { - // we have excluded a preexsting file -@@ -136,10 +145,7 @@ - } - - //Setup custom download location -- QString dn = m_downloadLocation->url(); - QString ddir = tc->getDataDir(); -- if (!dn.endsWith(bt::DirSeparator())) -- dn += bt::DirSeparator(); - if (!ddir.endsWith(bt::DirSeparator())) - ddir += bt::DirSeparator(); - diff --git a/net-p2p/ktorrent/files/patch-libktorrent-util-fileops.cpp b/net-p2p/ktorrent/files/patch-libktorrent-util-fileops.cpp deleted file mode 100644 index bb0df257e008..000000000000 --- a/net-p2p/ktorrent/files/patch-libktorrent-util-fileops.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- libktorrent/util/fileops.cpp.orig 2007-10-22 18:18:51.000000000 +0200 -+++ libktorrent/util/fileops.cpp 2007-10-22 18:35:28.000000000 +0200 -@@ -425,7 +425,7 @@ - if (statvfs(path.local8Bit(), &stfs) == 0) - #endif - { -- bytes_free = ((Uint64)stfs.f_bavail) * ((Uint64)stfs.f_bsize); -+ bytes_free = ((Uint64)stfs.f_bavail) * ((Uint64)stfs.f_frsize); - return true; - } - else |