From 294095367a988d1dc6e92b48fee0e2d8819d7c0e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 25 Sep 2010 10:49:13 +0000 Subject: [PATCH] BUGFIX: Add .torrent extension only when missing (torrent creator) --- Changelog | 1 + src/createtorrent_imp.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index c86745061..e72556895 100644 --- a/Changelog +++ b/Changelog @@ -5,6 +5,7 @@ - BUGFIX: OGV can now be previewed - BUGFIX: Maximum download limit is now 10MB/s - BUGFIX: Fix 'download in scan dir' persistence + - BUGFIX: Add .torrent extension only when missing (torrent creator) * Tue Aug 24 2010 - Christophe Dumez - v2.4.0 - FEATURE: Added actions to "Move to top/bottom" of priority queue diff --git a/src/createtorrent_imp.cpp b/src/createtorrent_imp.cpp index 4033f578f..4ed290632 100644 --- a/src/createtorrent_imp.cpp +++ b/src/createtorrent_imp.cpp @@ -191,7 +191,8 @@ void createtorrent::on_createButton_clicked(){ QString destination = QFileDialog::getSaveFileName(this, tr("Select destination torrent file"), last_path, tr("Torrent Files")+QString::fromUtf8(" (*.torrent)")); if(!destination.isEmpty()) { settings.setValue("CreateTorrent/last_save_path", misc::removeLastPathPart(destination)); - destination += QString::fromUtf8(".torrent"); + if(!destination.toUpper().endsWith(".TORRENT")) + destination += QString::fromUtf8(".torrent"); } else { return; }