Summary: | Swapfile synced on every keystroke | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | pbs3141 |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | minor | CC: | bugzilla-kde, cullmann |
Priority: | NOR | ||
Version: | 5.0.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
pbs3141
2015-07-04 13:00:48 UTC
it commit 034f0a9babf28b5d4719a9695066e855186e6cf0 by Christoph Cullmann. Committed on 08/06/2015 at 18:40. Pushed by cullmann into branch 'master'. fix problem with lockups, wrong time unit ms vs. s for swrap file saving BUG: 348159 M +2 -1 src/swapfile/kateswapfile.cpp http://commits.kde.org/ktexteditor/034f0a9babf28b5d4719a9695066e855186e6cf0 diff --git a/src/swapfile/kateswapfile.cpp b/src/swapfile/kateswapfile.cpp index 8ec3ac2..e91fc55 100644 --- a/src/swapfile/kateswapfile.cpp +++ b/src/swapfile/kateswapfile.cpp @@ -464,7 +464,8 @@ void SwapFile::finishEditing() // write the file to the disk every 15 seconds (default) // skip this if we disabled that if (m_document->config()->swapSyncInterval() != 0 && !syncTimer()->isActive()) { - syncTimer()->start(m_document->config()->swapSyncInterval()); + // important: we store the interval as seconds, start wants milliseconds! + syncTimer()->start(m_document->config()->swapSyncInterval() * 1000); } // format: qint8 *** This bug has been marked as a duplicate of bug 348159 *** |