summaryrefslogtreecommitdiffstats
path: root/indexerwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indexerwidget.cpp')
-rw-r--r--indexerwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexerwidget.cpp b/indexerwidget.cpp
index d773485..a3b0cd8 100644
--- a/indexerwidget.cpp
+++ b/indexerwidget.cpp
@@ -132,12 +132,12 @@ void BeetReader::run(){
quint16 year = file.tag()->year();
QString parentDir = QFileInfo(QString(s)).absolutePath();
QFileInfo albumDir(parentDir);
- QDateTime created = albumDir.created();
+ QDateTime dateAdded = albumDir.lastModified();
//write to database
int artistId = doArtist(artist);
int genreId = doGenre(genre);
- int albumId = doAlbum(album, year, created);
+ int albumId = doAlbum(album, year, dateAdded);
doSong(title, track, albumId, genreId, artistId, s, length);
if(ctr % 100 == 0){