Nepomuk KCM Backup: Show the correct oldest backup

Desktop / KDE / KDE Runtime - Vishesh Handa [vhanda.in] - 12 June 2013 15:23 EDT

Do not show the newest

###

diff --git a/nepomuk/kcm/nepomukserverkcm.cpp b/nepomuk/kcm/nepomukserverkcm.cpp
index cbd2c31..4893ac4 100644
--- a/nepomuk/kcm/nepomukserverkcm.cpp
+++ b/nepomuk/kcm/nepomukserverkcm.cpp
@@ -602,7 +602,7 @@ void Nepomuk2::ServerConfigModule::updateBackupStatus()
text += QLatin1String(" (");
text += i18nc("@info %1 is the creation date of a backup formatted vi KLocale::formatDateTime",
"Oldest: %1",
- KGlobal::locale()->formatDateTime(QFileInfo(backupUrl+QLatin1String("/")+backupFiles.last()).created(), KLocale::FancyShortDate));
+ KGlobal::locale()->formatDateTime(QFileInfo(backupUrl+QLatin1String("/")+backupFiles.first()).created(), KLocale::FancyShortDate));
text += QLatin1String(")");
}

fdd32eb Nepomuk KCM Backup: Show the correct oldest backup
nepomuk/kcm/nepomukserverkcm.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: quickgit.kde.org


  • Share