Browse Source

TorrentCreator: add .torrent extension only when missing

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
eb94c59892
  1. 1
      src/createtorrent_imp.cpp

1
src/createtorrent_imp.cpp

@ -191,6 +191,7 @@ void createtorrent::on_createButton_clicked(){ @@ -191,6 +191,7 @@ 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));
if(!destination.toUpper().endsWith(".TORRENT"))
destination += QString::fromUtf8(".torrent");
} else {
return;

Loading…
Cancel
Save