[Kst] branches/work/kst/portto4/kst/src/libkst
Barth Netterfield
netterfield at astro.utoronto.ca
Sun May 23 00:11:58 CEST 2010
SVN commit 1129600 by netterfield:
Don't update datasources when paused...
Fixes Matt's "things get updated that shouldn't when paused" bug.
M +5 -1 datasource.cpp
M +3 -0 datavector.cpp
--- branches/work/kst/portto4/kst/src/libkst/datasource.cpp #1129599:1129600
@@ -81,12 +81,16 @@
return NoChange;
}
+ UpdateType updated = NoChange;
+
+ if (!UpdateManager::self()->paused()) {
// update the datasource
- UpdateType updated = internalDataSourceUpdate();
+ updated = internalDataSourceUpdate();
if (updated == Updated) {
_serialOfLastChange = newSerial; // tell data objects it is new
}
+ }
_serial = newSerial;
--- branches/work/kst/portto4/kst/src/libkst/datavector.cpp #1129599:1129600
@@ -133,6 +133,7 @@
if (ReqNF <= 0 && ReqF0 < 0) {
ReqF0 = 0;
}
+ registerChange();
}
qint64 DataVector::minInputSerial() const {
@@ -193,6 +194,7 @@
if (ReqNF <= 0 && ReqF0 < 0) {
ReqF0 = 0;
}
+ registerChange();
}
@@ -206,6 +208,7 @@
ReqF0 = 0;
}
}
+ registerChange();
}
More information about the Kst
mailing list