Browse Source

Remember automated rss downloader dialog geometry

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
046ebb5a8f
  1. 8
      src/rss/automatedrssdownloader.cpp

8
src/rss/automatedrssdownloader.cpp

@ -70,7 +70,9 @@ AutomatedRssDownloader::~AutomatedRssDownloader()
void AutomatedRssDownloader::loadSettings() void AutomatedRssDownloader::loadSettings()
{ {
// TODO: load dialog size and pos // load dialog geometry
QIniSettings settings("qBittorrent", "qBittorrent");
restoreGeometry(settings.value("RssFeedDownloader/geometry").toByteArray());
ui->checkEnableDownloader->setChecked(RssSettings::isRssDownloadingEnabled()); ui->checkEnableDownloader->setChecked(RssSettings::isRssDownloadingEnabled());
// Display download rules // Display download rules
loadRulesList(); loadRulesList();
@ -79,7 +81,9 @@ void AutomatedRssDownloader::loadSettings()
void AutomatedRssDownloader::saveSettings() void AutomatedRssDownloader::saveSettings()
{ {
RssSettings::setRssDownloadingEnabled(ui->checkEnableDownloader->isChecked()); RssSettings::setRssDownloadingEnabled(ui->checkEnableDownloader->isChecked());
// TODO: Save dialog size and pos // Save dialog geometry
QIniSettings settings("qBittorrent", "qBittorrent");
settings.setValue("RssFeedDownloader/geometry", saveGeometry());
} }
void AutomatedRssDownloader::loadRulesList() void AutomatedRssDownloader::loadRulesList()

Loading…
Cancel
Save