Commit 539403a9 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Revert "Try to make the autosave saver."

This reverts commit 9e1f49263bccfb830663d4312c035a78c4f7499e.

Given that the bug reports keep streaming in, this didn't help.
I still cannot reliably reproduce it, though.

See https://bugs.kde.org/show_bug.cgi?id=310310
parent 057998ae
......@@ -71,7 +71,6 @@
#include <QDBusConnection>
#endif
#include <QApplication>
#include <QMutex>
// Define the protocol used here for embedded documents' URL
// This used to "store" but KUrl didn't like it,
......@@ -102,9 +101,6 @@ QString KoDocument::newObjectName()
return name;
}
static QMutex s_autosaveMutex;
class KoDocument::Private
{
public:
......@@ -468,8 +464,6 @@ bool KoDocument::isAutoErrorHandlingEnabled() const
void KoDocument::slotAutoSave()
{
s_autosaveMutex.lock();
if (!d->parentPart) return;
if (isModified() && d->modifiedAfterAutosave && !d->isLoading) {
// Give a warning when trying to autosave an encrypted file when no password is known (should not happen)
if (d->specialOutputFlag == SaveEncrypted && d->password.isNull()) {
......@@ -493,7 +487,6 @@ void KoDocument::slotAutoSave()
}
}
}
s_autosaveMutex.unlock();
}
void KoDocument::setReadWrite(bool readwrite)
......
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