From dc9edf75387e62a2489a2a161bc53aee8564d1ad Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 21 Jan 2010 18:33:53 +0000 Subject: [PATCH] - Fix overwrite check when renaming a folder in a torrent --- src/propertieswidget.cpp | 5 +++-- src/torrentadditiondlg.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/propertieswidget.cpp b/src/propertieswidget.cpp index a6ff366d1..671f80026 100644 --- a/src/propertieswidget.cpp +++ b/src/propertieswidget.cpp @@ -595,14 +595,15 @@ void PropertiesWidget::renameSelectedFile() { path_items.removeLast(); path_items << new_name_last; QString new_path = path_items.join(QDir::separator()); + if(!new_path.endsWith(QDir::separator())) new_path += QDir::separator(); // Check for overwriting int num_files = h.num_files(); for(int i=0; i