summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--torrentwidget.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/torrentwidget.cpp b/torrentwidget.cpp
index 9b155cf..e86b3e9 100644
--- a/torrentwidget.cpp
+++ b/torrentwidget.cpp
@@ -258,6 +258,13 @@ void TorrentWidget::moveFiles(){
bool ok = QFile::rename(fp.absoluteFilePath(), newfn);
if(ok){
++ctr;
+ }else{
+ QFileInfo nf(newfn);
+ if(nf.exists() && nf.isFile()){
+ //don't care if it's the same file or not...
+ QFile::remove(fp.absoluteFilePath());
+ ++ctr;
+ }
}
}
QString msg = QString(tr("Successfully moved %1 of %2 file(s)")).arg(QString::number(ctr)).arg(QString::number(sel.count()));