Simplify the code a bit now that QIniSettings uses qBittorrent / qBittorrent by default

This commit is contained in:
Christophe Dumez
2013-02-16 20:04:48 +02:00
parent 6c753ac183
commit da3406b811
18 changed files with 52 additions and 52 deletions

View File

@@ -440,7 +440,7 @@ void TrackerList::showTrackerListMenu(QPoint) {
}
void TrackerList::loadSettings() {
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
QIniSettings settings;
if (!header()->restoreState(settings.value("TorrentProperties/Trackers/TrackerListState").toByteArray())) {
setColumnWidth(0, 30);
setColumnWidth(1, 300);
@@ -448,6 +448,6 @@ void TrackerList::loadSettings() {
}
void TrackerList::saveSettings() const {
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
QIniSettings settings;
settings.setValue("TorrentProperties/Trackers/TrackerListState", header()->saveState());
}