[shotwell] Use importable title when importing media.



commit 585b3018eabc0b6cefce505142bd2bb14f4ae41b
Author: Tim Waugh <twaugh redhat com>
Date:   Sat Dec 27 19:18:57 2014 +0000

    Use importable title when importing media.

 src/data_imports/DataImportSource.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/data_imports/DataImportSource.vala b/src/data_imports/DataImportSource.vala
index d7e8ec8..ff88d34 100644
--- a/src/data_imports/DataImportSource.vala
+++ b/src/data_imports/DataImportSource.vala
@@ -49,8 +49,11 @@ public class DataImportSource {
                 metadata = null;
             }
             
-            title = (metadata != null) ? metadata.get_title() : null;
             exposure_time = (metadata != null) ? metadata.get_exposure_date_time() : null;
+            title = db_photo.get_title();
+            if (title == null) {
+                title = (metadata != null) ? metadata.get_title() : null;
+            }
             PhotoPreview? preview = metadata != null ? metadata.get_preview(0) : null;
             if (preview != null) {
                 try {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]