[kdevplatform] language/duchain/repositories: Change amount of crashes before the cleanup dialog is displayed from 2 to 1

Sven Brauch svenbrauch at googlemail.com
Mon Dec 23 17:40:52 UTC 2013


Git commit a7154277d862c7342616c0458ef43f47baf7d8b2 by Sven Brauch.
Committed on 23/12/2013 at 17:39.
Pushed by brauch into branch 'master'.

Change amount of crashes before the cleanup dialog is displayed from 2 to 1

As discussed on the mailing list.
CCMAIL:kdevelop-devel at kde.org

M  +2    -2    language/duchain/repositories/itemrepositoryregistry.cpp

http://commits.kde.org/kdevplatform/a7154277d862c7342616c0458ef43f47baf7d8b2

diff --git a/language/duchain/repositories/itemrepositoryregistry.cpp b/language/duchain/repositories/itemrepositoryregistry.cpp
index 01989c1..06ed84e 100644
--- a/language/duchain/repositories/itemrepositoryregistry.cpp
+++ b/language/duchain/repositories/itemrepositoryregistry.cpp
@@ -35,7 +35,7 @@
 namespace {
 
 //If KDevelop crashed this many times consicutively, clean up the repository
-const int crashesBeforeCleanup = 2;
+const int crashesBeforeCleanup = 1;
 
 void setCrashCounter(QFile& crashesFile, int count)
 {
@@ -259,7 +259,7 @@ bool ItemRepositoryRegistryPrivate::open(const QString& path)
       kDebug() << "current count of crashes: " << count;
 
       if(count >= crashesBeforeCleanup && !getenv("DONT_CLEAR_DUCHAIN_DIR")) {
-        bool userAnswer = askUser(i18np("Session crashed %1 time in a row", "Session crashed %1 times in a row", count),
+        bool userAnswer = askUser(i18np("The previous session crashed", "Session crashed %1 times in a row", count),
                                   i18nc("@action", "Clear cache"),
                                   i18nc("@title", "Session crashed"),
                                   i18n("The crash may be caused by a corruption of cached data.\n\n"


More information about the KDevelop-devel mailing list