Commit f076a0de authored by Christoph Cullmann's avatar 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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment