From d6353fc3b2349c5756d5983a52f0e6af4681e6d2 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 28 Nov 2012 01:45:42 +0200 Subject: [PATCH] Fix behaviour of the torrent addition dialog. The 'set as default path' didn't work as intended. Closes issues #251 and #243. --- src/addnewtorrentdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addnewtorrentdialog.cpp b/src/addnewtorrentdialog.cpp index 18aa0fc09..507f8b82f 100644 --- a/src/addnewtorrentdialog.cpp +++ b/src/addnewtorrentdialog.cpp @@ -65,7 +65,7 @@ AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent) : QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); Preferences pref; ui->start_torrent_cb->setChecked(!pref.addTorrentsInPause()); - ui->save_path_combo->addItem(fsutils::toDisplayPath(pref.getSavePath())); + ui->save_path_combo->addItem(fsutils::toDisplayPath(pref.getSavePath()), pref.getSavePath()); loadSavePathHistory(); ui->save_path_combo->insertSeparator(ui->save_path_combo->count()); ui->save_path_combo->addItem(tr("Other...", "Other save path..."));