LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kdenetwork3-kopete-trinity-r1107469-removetempfiles.diff of Package kdenetwork3 (Project openSUSE:Factory)

Index: kdenetwork/kopete/protocols/msn/incomingtransfer.cpp
===================================================================
--- kdenetwork/kopete/protocols/msn/incomingtransfer.cpp	(revision 1107468)
+++ kdenetwork/kopete/protocols/msn/incomingtransfer.cpp	(revision 1107469)
@@ -177,6 +177,9 @@
 	else if(message.header.dataSize == 4 && message.applicationIdentifier == 1)
 	{
 		// Data preparation message.
+		if (m_tempFile->name().isEmpty() == false) {
+			QFile::remove(m_tempFile->name());
+		}
 		m_tempFile = new KTempFile(locateLocal("tmp", "msnpicture--"), ".png");
 		m_tempFile->setAutoDelete(true);
 		m_file = m_tempFile->file();