Fix automatedrssdownloader position

This commit is contained in:
Chocobo1 2015-10-27 16:45:11 +08:00
parent 73047e3c84
commit 2258e4d5ed
3 changed files with 9 additions and 14 deletions

View file

@ -149,17 +149,15 @@ AutomatedRssDownloader::~AutomatedRssDownloader()
void AutomatedRssDownloader::loadSettings()
{
// load dialog geometry
const Preferences *const pref = Preferences::instance();
restoreGeometry(pref->getRssGeometry());
resize(pref->getRssGeometrySize(this->size()));
m_ui->hsplitter->restoreState(pref->getRssHSplitterSizes());
}
void AutomatedRssDownloader::saveSettings()
{
// Save dialog geometry
Preferences *const pref = Preferences::instance();
pref->setRssGeometry(saveGeometry());
pref->setRssGeometrySize(this->size());
pref->setRssHSplitterSizes(m_ui->hsplitter->saveState());
}