Skip to content
Snippets Groups Projects
Commit 5aed1e56 authored by Kelly Kelly's avatar Kelly Kelly
Browse files

Fixed comment

parent c5e00cc8
Branches
Tags
No related merge requests found
...@@ -839,7 +839,7 @@ public void propertyChange(PropertyChangeEvent event) { ...@@ -839,7 +839,7 @@ public void propertyChange(PropertyChangeEvent event) {
Content newDataSource = (Content) event.getNewValue(); Content newDataSource = (Content) event.getNewValue();
if (isListeningEnabled()) { if (isListeningEnabled()) {
try { try {
// status of UNKNOWN from getDataSourceDbBuildStatus means that the data source is not known // Only add the data source if is not in the database
if(drawableDB.getDataSourceDbBuildStatus(newDataSource.getId()) == DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN) { if(drawableDB.getDataSourceDbBuildStatus(newDataSource.getId()) == DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN) {
drawableDB.insertOrUpdateDataSource(newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN); drawableDB.insertOrUpdateDataSource(newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment