Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
kdelibs4
patch-r894493.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File patch-r894493.diff of Package kdelibs4
Subject: Save knumpinput value before setRange, fixes okular Go To Page dialog From: wstephenson@suse.de Bug: kde#177199 Patch-upstream: 894493 --- kdeui/widgets/knuminput.cpp (revision 894492) +++ kdeui/widgets/knuminput.cpp (revision 894493) @@ -387,9 +387,10 @@ void KIntNumInput::setSliderEnabled(bool priv->m_slider->setTickPosition(QSlider::TicksBelow); } + int value = d->m_spin->value(); priv->m_slider->setRange(d->m_spin->minimum(), d->m_spin->maximum()); priv->m_slider->setPageStep(d->m_spin->singleStep()); - priv->m_slider->setValue(d->m_spin->value()); + priv->m_slider->setValue(value); // calculate (upper-lower)/10 without overflowing int's: int major = calcDiffByTen( d->m_spin->maximum(), d->m_spin->minimum() ); Index: kdeui/widgets/knuminput.cpp ===================================================================
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor