Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ public void addArchiveDataSource(final ArchiveDataSource archs[])
/** @param archive Archive to remove as a source from this item. */
public void removeArchiveDataSource(final ArchiveDataSource archive)
{
// Archive removed -> (Probably) no need to get new data
if (archives.remove(archive))
boolean change = archives.remove(archive);
if (!Preferences.use_default_archives && change) {
// Archive removed -> (Probably) no need to get new data
fireItemDataConfigChanged(false);
}
}

/** @param archs Archives to remove as a source from this item. Ignored when not used. */
Expand All @@ -254,7 +256,7 @@ public void removeArchiveDataSource(final List<ArchiveDataSource> archs)
for (ArchiveDataSource archive : archs)
if (archives.remove(archive))
change = true;
if (change)
if (!Preferences.use_default_archives && change)
fireItemDataConfigChanged(false);
}

Expand Down