Permalink
Browse files

AlbumArtImages: update the id after dumping to the database

  • Loading branch information...
1 parent 103d573 commit ad113b1f1cf02c21b2e4baeb12ca7917c7568230 Paul Harrison committed Mar 2, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 mythtv/libs/libmythmetadata/musicmetadata.cpp
@@ -2033,5 +2033,10 @@ void AlbumArtImages::dumpToDatabase(void)
if (!query.exec())
MythDB::DBError("AlbumArtImages::dumpToDatabase - "
"add/update music_albumart", query);
+ else
+ {
+ if (image->id <= 0)
+ image->id = query.lastInsertId().toInt();
+ }
}
}

0 comments on commit ad113b1

Please sign in to comment.