Re-enable caching mechanism
2001-07-31 Bradford Hovinen <hovinen@ximian.com> * archive.c (archive_get_current_location_id): Re-enable caching mechanism
This commit is contained in:
parent
478de4ee41
commit
d30dd82590
2 changed files with 3 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
|||
2001-07-31 Bradford Hovinen <hovinen@ximian.com>
|
||||
|
||||
* archive.c (archive_get_current_location_id): Re-enable caching
|
||||
mechanism
|
||||
|
||||
* bonobo-config-archiver.c (pb_get_fn): Use
|
||||
location_get_config_log rather than config_log_open; don't destroy
|
||||
the log
|
||||
|
|
|
@ -515,9 +515,7 @@ archive_get_current_location_id (Archive *archive)
|
|||
g_return_val_if_fail (archive != NULL, NULL);
|
||||
g_return_val_if_fail (IS_ARCHIVE (archive), NULL);
|
||||
|
||||
#if 0
|
||||
if (archive->current_location_id == NULL) {
|
||||
#endif
|
||||
if (archive->is_global)
|
||||
archive->current_location_id =
|
||||
gnome_config_get_string_with_default
|
||||
|
@ -542,9 +540,7 @@ archive_get_current_location_id (Archive *archive)
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
}
|
||||
#endif
|
||||
|
||||
return archive->current_location_id;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue