Solving issue 1618: "GUI freezes: Adjuster::sliderReleased" ; This patch has been confirmed to solve the problem, but without warranty of other side effect.
This commit is contained in:
@@ -439,7 +439,6 @@ void Adjuster::setAutoValue (bool a) {
|
|||||||
bool Adjuster::notifyListener () {
|
bool Adjuster::notifyListener () {
|
||||||
|
|
||||||
if (eventPending && adjusterListener!=NULL && !blocked) {
|
if (eventPending && adjusterListener!=NULL && !blocked) {
|
||||||
GThreadLock lock;
|
|
||||||
adjusterListener->adjusterChanged (this, spin->get_value ());
|
adjusterListener->adjusterChanged (this, spin->get_value ());
|
||||||
}
|
}
|
||||||
eventPending = false;
|
eventPending = false;
|
||||||
@@ -450,7 +449,6 @@ bool Adjuster::notifyListener () {
|
|||||||
bool Adjuster::notifyListenerAutoToggled () {
|
bool Adjuster::notifyListenerAutoToggled () {
|
||||||
|
|
||||||
if (adjusterListener!=NULL && !blocked) {
|
if (adjusterListener!=NULL && !blocked) {
|
||||||
GThreadLock lock;
|
|
||||||
adjusterListener->adjusterAutoToggled(this, automatic->get_active());
|
adjusterListener->adjusterAutoToggled(this, automatic->get_active());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user