summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2017-11-15 09:46:36 +0100
committerAlbert Astals Cid <[email protected]>2017-11-15 09:46:36 +0100
commitd7457e35695dd79ea2b4a2571c6e3f70c04e50e3 (patch)
tree8735284e809452d98449c90155376528af21b3be
parent21028432739cd20825417a30b287a0dbc2399282 (diff)
Fix double dialog in closing sometimes
sometimes = when you opened a .okular containing a png and an annotation and then saved as to just png Found by the autotest that stopped passing \o/
-rw-r--r--part.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/part.cpp b/part.cpp
index d0bf891..50ca274 100644
--- a/part.cpp
+++ b/part.cpp
@@ -1730,6 +1730,8 @@ bool Part::closeUrl(bool promptToSave)
return true; // pretend it worked
}
+ m_document->setHistoryClean( true );
+
if (!m_temporaryLocalFile.isNull() && m_temporaryLocalFile != localFilePath())
{
QFile::remove( m_temporaryLocalFile );