mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 07:02:31 -06:00
BUGFIX: Add .torrent extension only when missing (torrent creator)
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
- BUGFIX: OGV can now be previewed
|
- BUGFIX: OGV can now be previewed
|
||||||
- BUGFIX: Maximum download limit is now 10MB/s
|
- BUGFIX: Maximum download limit is now 10MB/s
|
||||||
- BUGFIX: Fix 'download in scan dir' persistence
|
- BUGFIX: Fix 'download in scan dir' persistence
|
||||||
|
- BUGFIX: Add .torrent extension only when missing (torrent creator)
|
||||||
|
|
||||||
* Tue Aug 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.0
|
* Tue Aug 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.0
|
||||||
- FEATURE: Added actions to "Move to top/bottom" of priority queue
|
- FEATURE: Added actions to "Move to top/bottom" of priority queue
|
||||||
|
|||||||
@@ -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)"));
|
QString destination = QFileDialog::getSaveFileName(this, tr("Select destination torrent file"), last_path, tr("Torrent Files")+QString::fromUtf8(" (*.torrent)"));
|
||||||
if(!destination.isEmpty()) {
|
if(!destination.isEmpty()) {
|
||||||
settings.setValue("CreateTorrent/last_save_path", misc::removeLastPathPart(destination));
|
settings.setValue("CreateTorrent/last_save_path", misc::removeLastPathPart(destination));
|
||||||
destination += QString::fromUtf8(".torrent");
|
if(!destination.toUpper().endsWith(".TORRENT"))
|
||||||
|
destination += QString::fromUtf8(".torrent");
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user