From 14db21c241e859c0d080f2e95cb6c5eed1b18fbb Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 21 Jan 2010 18:39:12 +0000 Subject: [PATCH] BUGFIX: Fix overwrite check when renaming a folder in a torrent --- Changelog | 3 +++ src/propertieswidget.cpp | 5 +++-- src/torrentadditiondlg.h | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index 0d173c737..8c5ce7399 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* Unreleased - Christophe Dumez - v2.1.2 + - BUGFIX: Fix overwrite check when renaming a folder in a torrent + * Wed Jan 20 2010 - Christophe Dumez - v2.1.1 - BUGFIX: Fix compilation with Qt4.4 - BUGFIX: Save torrent metadata so that it does not have to be re-downloaded on restart (Magnet links) 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