Merge pull request #3858 from Chocobo1/screen_center

Fix dialogs didn't position on the correct screen
This commit is contained in:
sledgehammer999
2017-05-07 22:17:55 +03:00
committed by GitHub
41 changed files with 139 additions and 360 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());
}