Changeset View
Changeset View
Standalone View
Standalone View
XMLDB/Database.cpp
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Line(s) | 236 | Q_FOREACH( const DB::ImageInfoPtr& info, images ) { | |||
---|---|---|---|---|---|
240 | m_delayedUpdate << info; | 240 | m_delayedUpdate << info; | ||
241 | } | 241 | } | ||
242 | if ( doUpdate ) { | 242 | if ( doUpdate ) { | ||
243 | uint imagesAdded = m_delayedUpdate.count(); | 243 | uint imagesAdded = m_delayedUpdate.count(); | ||
244 | if ( imagesAdded > 0 ) { | 244 | if ( imagesAdded > 0 ) { | ||
245 | forceUpdate(m_delayedUpdate); | 245 | forceUpdate(m_delayedUpdate); | ||
246 | m_delayedCache.clear(); | 246 | m_delayedCache.clear(); | ||
247 | m_delayedUpdate.clear(); | 247 | m_delayedUpdate.clear(); | ||
248 | // It's the responsility of the caller to add the EXIF information. | 248 | // It's the responsility of the caller to add the Exif information. | ||
249 | // It's more efficient from an I/O perspective to minimize the number | 249 | // It's more efficient from an I/O perspective to minimize the number | ||
250 | // of passes over the images, and with the ability to add the EXIF | 250 | // of passes over the images, and with the ability to add the Exif | ||
251 | // data in a transaction, there's no longer any need to read it here. | 251 | // data in a transaction, there's no longer any need to read it here. | ||
252 | emit totalChanged( m_images.count() ); | 252 | emit totalChanged( m_images.count() ); | ||
253 | emit dirty(); | 253 | emit dirty(); | ||
254 | } | 254 | } | ||
255 | } | 255 | } | ||
256 | } | 256 | } | ||
257 | 257 | | |||
258 | void XMLDB::Database::renameImage( DB::ImageInfoPtr info, const DB::FileName& newName ) | 258 | void XMLDB::Database::renameImage( DB::ImageInfoPtr info, const DB::FileName& newName ) | ||
▲ Show 20 Lines • Show All 485 Lines • Show Last 20 Lines |