Fix RSS panel position not saved

This commit is contained in:
ngosang
2015-09-03 04:45:47 +02:00
committed by sledgehammer999
parent 0ec35a24e0
commit ab49c80247
2 changed files with 12 additions and 12 deletions

View File

@@ -641,11 +641,11 @@ void RSSImp::saveSlidersPosition()
void RSSImp::restoreSlidersPosition()
{
const Preferences* const pref = Preferences::instance();
QByteArray pos_h = pref->getRssHSplitterState();
if (!pos_h.isNull())
const QByteArray pos_h = pref->getRssHSplitterState();
if (!pos_h.isEmpty())
splitter_h->restoreState(pos_h);
QByteArray pos_v = pref->getRssVSplitterState();
if (!pos_v.isNull())
const QByteArray pos_v = pref->getRssVSplitterState();
if (!pos_v.isEmpty())
splitter_v->restoreState(pos_v);
}