[niepce: 4/4] * src/engine/db/library.cpp (Library::addFile):
- From: Hubert Figuiere <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [niepce: 4/4] * src/engine/db/library.cpp (Library::addFile):
- Date: Mon, 9 Mar 2009 02:47:31 -0400 (EDT)
commit e6f005f89c4b306050ed8a15153311a4deb21611
Author: Hubert Figuiere <hub figuiere net>
Date: Sun Mar 8 00:24:32 2009 -0500
* src/engine/db/library.cpp (Library::addFile):
Pass label_id instead of folder_id for the label.
---
ChangeLog | 5 +++++
src/engine/db/library.cpp | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8173bc5..80c757b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-08 Hubert Figuiere <hub figuiere net>
+
+ * src/engine/db/library.cpp (Library::addFile):
+ Pass label_id instead of folder_id for the label.
+
2009-03-07 Hubert Figuiere <hub figuiere net>
* Refactor the ModelRecord for Gtk a bit.
diff --git a/src/engine/db/library.cpp b/src/engine/db/library.cpp
index e5c6f6c..bfc313c 100644
--- a/src/engine/db/library.cpp
+++ b/src/engine/db/library.cpp
@@ -286,7 +286,7 @@ int Library::addFile(int folder_id, const bfs::path & file, bool manage)
% fs_file_id % file.leaf() % folder_id
% time(NULL)
% orientation % creation_date % rating
- % folder_id % file_type);
+ % label_id % file_type);
std::string buf = meta.serialize_inline();
sql.bind(1, buf);
if(m_dbdrv->execute_statement(sql)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]