Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KDevPlatform
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Unmaintained
KDevPlatform
Commits
a7154277
Commit
a7154277
authored
11 years ago
by
Sven Brauch
Browse files
Options
Downloads
Patches
Plain Diff
Change amount of crashes before the cleanup dialog is displayed from 2 to 1
As discussed on the mailing list. CCMAIL:kdevelop-devel@kde.org
parent
d9d855df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
language/duchain/repositories/itemrepositoryregistry.cpp
+2
-2
2 additions, 2 deletions
language/duchain/repositories/itemrepositoryregistry.cpp
with
2 additions
and
2 deletions
language/duchain/repositories/itemrepositoryregistry.cpp
+
2
−
2
View file @
a7154277
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment