mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-21 22:52:22 +00:00
Fix user input bug in viewer
which created exponential copies of user comments!
This commit is contained in:
parent
2dd90f6a32
commit
4297afdc51
@ -136,7 +136,9 @@ public class UserInputLogger extends SQLLogging {
|
||||
if (dataUnit != null && dataUnit.getDatabaseIndex() != databaseIndex) {
|
||||
dataUnit.setDatabaseIndex(databaseIndex);
|
||||
dataUnit.setUserString(dataUnit.getUserString() + " " + txt);
|
||||
getPamDataBlock().updatePamData(dataUnit, timeMilliseconds);
|
||||
// don't call this next line, it causes the unit to get relogged.
|
||||
// getPamDataBlock().updatePamData(dataUnit, timeMilliseconds);
|
||||
dataUnit.clearUpdateCount();
|
||||
}
|
||||
else {
|
||||
dataUnit = new UserInputDataUnit(timeMilliseconds, txt);
|
||||
|
Loading…
Reference in New Issue
Block a user