source-dialog: avoid unneeded comparisons

Sources are unique, so the comparison can be avoided once the source is
found
This commit is contained in:
Erick Pérez Castellanos
2015-05-25 12:36:54 -04:00
parent 1431f4b895
commit 2677ec560a
+4 -1
View File
@@ -281,7 +281,10 @@ add_source (GcalManager *manager,
for (l = children; l != NULL; l = l->next)
{
if (g_object_get_data (l->data, "source") == source)
contains_source = TRUE;
{
contains_source = TRUE;
break;
}
}
if (!contains_source)