From 52b1cdce6f288b25de5509a6333dbbdc6c948cbc Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Mon, 1 Apr 2013 21:37:36 +0300 Subject: [PATCH] Really fix issue #405 and #536. Conflicts: src/mainwindow.cpp --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 70432213a..07ad1af65 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1172,8 +1172,8 @@ void MainWindow::showNotificationBaloon(QString title, QString msg) const { *****************************************************/ void MainWindow::downloadFromURLList(const QStringList& url_list) { - QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); - const bool useTorrentAdditionDialog = settings.value(QString::fromUtf8("Preferences/Downloads/AdditionDialog"), true).toBool(); + Preferences pref; + const bool useTorrentAdditionDialog = pref.useAdditionDialog(); foreach (QString url, url_list) { if (url.startsWith("bc://bt/", Qt::CaseInsensitive)) { qDebug("Converting bc link to magnet link");