Changeset View
Changeset View
Standalone View
Standalone View
DB/FileInfo.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
47 | 47 | | |||
48 | const DB::FileName& DB::FileInfo::getFileName() const | 48 | const DB::FileName& DB::FileInfo::getFileName() const | ||
49 | { | 49 | { | ||
50 | return m_fileName; | 50 | return m_fileName; | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | bool DB::FileInfo::updateDataFromFileTimeStamp(const DB::FileName& fileName, DB::ExifMode mode) | 53 | bool DB::FileInfo::updateDataFromFileTimeStamp(const DB::FileName& fileName, DB::ExifMode mode) | ||
54 | { | 54 | { | ||
55 | // If the date is valid from EXIF reading, then we should not use the time stamp from the file. | 55 | // If the date is valid from Exif reading, then we should not use the time stamp from the file. | ||
56 | if ( m_date.isValid() ) | 56 | if ( m_date.isValid() ) | ||
57 | return false; | 57 | return false; | ||
58 | 58 | | |||
59 | // If we are not setting date, then we should of course not set the date | 59 | // If we are not setting date, then we should of course not set the date | ||
60 | if ( (mode & EXIFMODE_DATE) == 0 ) | 60 | if ( (mode & EXIFMODE_DATE) == 0 ) | ||
61 | return false; | 61 | return false; | ||
62 | 62 | | |||
63 | // If we are we already have specifies that we want to sent the date (from the ReReadExif dialog), then we of course should. | 63 | // If we are we already have specifies that we want to sent the date (from the ReReadExif dialog), then we of course should. | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |