mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
- Fixed search engines plugins saving
This commit is contained in:
parent
488bd90303
commit
925ecb3464
3
TODO
3
TODO
@ -53,8 +53,7 @@
|
|||||||
* beta 7
|
* beta 7
|
||||||
- update doc for plugins (and add screenies)
|
- update doc for plugins (and add screenies)
|
||||||
- update doc for options
|
- update doc for options
|
||||||
- See bug about negative ETA
|
- See bug about negative ETA
|
||||||
- Fix search engines saving
|
|
||||||
- Translations update (IN PROGRESS)
|
- Translations update (IN PROGRESS)
|
||||||
- Wait that http://pastebin.ca/690649 is fixed
|
- Wait that http://pastebin.ca/690649 is fixed
|
||||||
|
|
||||||
|
@ -68,6 +68,7 @@ engineSelectDlg::engineSelectDlg(QWidget *parent) : QDialog(parent) {
|
|||||||
|
|
||||||
engineSelectDlg::~engineSelectDlg() {
|
engineSelectDlg::~engineSelectDlg() {
|
||||||
qDebug("Destroying engineSelectDlg");
|
qDebug("Destroying engineSelectDlg");
|
||||||
|
saveSettings();
|
||||||
emit enginesChanged();
|
emit enginesChanged();
|
||||||
qDebug("Before deleting downloader");
|
qDebug("Before deleting downloader");
|
||||||
delete downloader;
|
delete downloader;
|
||||||
@ -110,12 +111,14 @@ void engineSelectDlg::dragEnterEvent(QDragEnterEvent *event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void engineSelectDlg::saveSettings() {
|
void engineSelectDlg::saveSettings() {
|
||||||
|
qDebug("Saving engines settings");
|
||||||
QStringList known_engines;
|
QStringList known_engines;
|
||||||
QVariantList known_enginesEnabled;
|
QVariantList known_enginesEnabled;
|
||||||
QString engine;
|
QString engine;
|
||||||
foreach(engine, installed_engines) {
|
foreach(engine, installed_engines.keys()) {
|
||||||
known_engines << engine;
|
known_engines << engine;
|
||||||
known_enginesEnabled << QVariant(installed_engines.value(engine, true));
|
known_enginesEnabled << QVariant(installed_engines.value(engine, true));
|
||||||
|
qDebug("Engine %s has state: %d", engine.toUtf8().data(), installed_engines.value(engine, true));
|
||||||
}
|
}
|
||||||
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||||
settings.setValue(QString::fromUtf8("SearchEngines/knownEngines"), known_engines);
|
settings.setValue(QString::fromUtf8("SearchEngines/knownEngines"), known_engines);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user