[gthumb] [importer] use the current date as fallback value
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] [importer] use the current date as fallback value
- Date: Thu, 27 May 2010 16:52:08 +0000 (UTC)
commit dd95f62b2e0e620165c1b0bc883fab0e05c759b9
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu May 27 18:50:19 2010 +0200
[importer] use the current date as fallback value
use the current date if the modification time is not available
extensions/importer/utils.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/extensions/importer/utils.c b/extensions/importer/utils.c
index 48757d0..dc227e7 100644
--- a/extensions/importer/utils.c
+++ b/extensions/importer/utils.c
@@ -72,6 +72,9 @@ gth_import_utils_get_file_destination (GthFileData *file_data,
_g_time_val_from_exif_date (gth_metadata_get_raw (metadata), &timeval);
else
g_file_info_get_modification_time (file_data->info, &timeval);
+
+ if (timeval.tv_sec == 0)
+ subfolder_type = GTH_SUBFOLDER_TYPE_CURRENT_DATE;
}
if (subfolder_type == GTH_SUBFOLDER_TYPE_CURRENT_DATE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]