Changeset View
Changeset View
Standalone View
Standalone View
applets/comic/comic.cpp
Context not available. | |||||
333 | 333 | | |||
---|---|---|---|---|---|
334 | void ComicApplet::checkDayChanged() | 334 | void ComicApplet::checkDayChanged() | ||
335 | { | 335 | { | ||
336 | if ( ( mCurrentDay != QDate::currentDate() ) || !mCurrent.hasImage() ) | 336 | if ( mCurrentDay != QDate::currentDate() ) { | ||
337 | updateComic( mCurrent.current() ); | ||||
338 | mCurrentDay = QDate::currentDate(); | ||||
339 | } else if ( !mCurrent.hasImage() ) { | ||||
337 | updateComic( mCurrent.stored() ); | 340 | updateComic( mCurrent.stored() ); | ||
338 | 341 | } | |||
339 | mCurrentDay = QDate::currentDate(); | | |||
340 | } | 342 | } | ||
341 | 343 | | |||
342 | void ComicApplet::configChanged() | 344 | void ComicApplet::configChanged() | ||
Context not available. | |||||
408 | { | 410 | { | ||
409 | Q_UNUSED(index) | 411 | Q_UNUSED(index) | ||
410 | 412 | | |||
413 | if (mCurrent.id() != identifier) { | ||||
414 | return; | ||||
415 | } | ||||
416 | | ||||
411 | KConfigGroup cg = config(); | 417 | KConfigGroup cg = config(); | ||
412 | if (suffix != cg.readEntry(QLatin1String("lastStrip_") + identifier, QString())) { | 418 | if (suffix != cg.readEntry(QLatin1String("lastStrip_") + identifier, QString())) { | ||
413 | qDebug() << identifier << "has a newer strip."; | 419 | qDebug() << identifier << "has a newer strip."; | ||
Context not available. |