Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
f076a0de
Commit
f076a0de
authored
Nov 09, 2012
by
Christoph Cullmann
🐮
Browse files
fix that disable swap file syncing caused no swap files at all
thanks for reporting this, stupid mistake
BUG: 309751
parent
25f49bc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
part/swapfile/kateswapfile.cpp
View file @
f076a0de
...
...
@@ -82,7 +82,6 @@ SwapFile::~SwapFile()
void
SwapFile
::
configChanged
()
{
setTrackingEnabled
(
!
m_document
->
config
()
->
swapFileNoSync
());
}
void
SwapFile
::
setTrackingEnabled
(
bool
enable
)
...
...
@@ -396,7 +395,8 @@ void SwapFile::finishEditing ()
return
;
// write the file to the disk every 15 seconds
if
(
!
syncTimer
()
->
isActive
())
// skip this if we disabled forced syncing
if
(
!
m_document
->
config
()
->
swapFileNoSync
()
&&
!
syncTimer
()
->
isActive
())
syncTimer
()
->
start
(
15000
);
// format: qint8
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment