Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d7457e35 authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

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/
parent 21028432
......@@ -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 );
......
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