Fix KHTML smooth scrolling control center option

This closes Bug 1001
Thanks to Roman Savochenko for the patch!
(cherry picked from commit b45b4bd730)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent d8d8cc4759
commit 3ac0ac3aee

@ -299,7 +299,7 @@ void KMiscHTMLOptions::load( bool useDefaults )
KConfig kdeglobals("kdeglobals", true, false); KConfig kdeglobals("kdeglobals", true, false);
kdeglobals.setReadDefaults( useDefaults ); kdeglobals.setReadDefaults( useDefaults );
kdeglobals.setGroup("KDE"); kdeglobals.setGroup("KDE");
bool smoothScrolling = kdeglobals.readBoolEntry("SmoothScroll", DEFAULT_SMOOTHSCROLL); bool smoothScrolling = kdeglobals.readBoolEntry("SmoothScrolling", DEFAULT_SMOOTHSCROLL);
if (smoothScrolling) if (smoothScrolling)
m_pSmoothScrollingCombo->setCurrentItem( SmoothScrollingAlways ); m_pSmoothScrollingCombo->setCurrentItem( SmoothScrollingAlways );
else else
@ -374,13 +374,13 @@ void KMiscHTMLOptions::save()
switch(m_pSmoothScrollingCombo->currentItem()) switch(m_pSmoothScrollingCombo->currentItem())
{ {
case SmoothScrollingAlways: case SmoothScrollingAlways:
kdeglobals.writeEntry( "SmoothScroll", true ); kdeglobals.writeEntry( "SmoothScrolling", true );
break; break;
case SmoothScrollingNever: case SmoothScrollingNever:
kdeglobals.writeEntry( "SmoothScroll", false ); kdeglobals.writeEntry( "SmoothScrolling", false );
break; break;
// case SmoothScrollingWhenEfficient: // case SmoothScrollingWhenEfficient:
// kdeglobals.writeEntry( "SmoothScroll", somethingelse ); // kdeglobals.writeEntry( "SmoothScrolling", somethingelse );
// break; // break;
} }
kdeglobals.sync(); kdeglobals.sync();

Loading…
Cancel
Save