Skip to content

Commit 672d82a

Browse files
committed
CSSTUDIO-1950 Revert "CSSTUDIO-1950 Remove call to fireItemDataConfigChanged() when archives are removed from instances of PVItem."
This reverts commit 91aa15d.
1 parent 91aa15d commit 672d82a

File tree

1 file changed

+7
-2
lines changed
  • app/databrowser/src/main/java/org/csstudio/trends/databrowser3/model

1 file changed

+7
-2
lines changed

app/databrowser/src/main/java/org/csstudio/trends/databrowser3/model/PVItem.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,19 @@ public void addArchiveDataSource(final ArchiveDataSource archs[])
243243
public void removeArchiveDataSource(final ArchiveDataSource archive)
244244
{
245245
// Archive removed -> (Probably) no need to get new data
246-
archives.remove(archive);
246+
if (archives.remove(archive))
247+
fireItemDataConfigChanged(false);
247248
}
248249

249250
/** @param archs Archives to remove as a source from this item. Ignored when not used. */
250251
public void removeArchiveDataSource(final List<ArchiveDataSource> archs)
251252
{
253+
boolean change = false;
252254
for (ArchiveDataSource archive : archs)
253-
archives.remove(archive);
255+
if (archives.remove(archive))
256+
change = true;
257+
if (change)
258+
fireItemDataConfigChanged(false);
254259
}
255260

256261
/** Replace existing archive data sources with given archives

0 commit comments

Comments
 (0)