Should fix empty temp files being left around

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1107469 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
parent 1fdcb0e5ce
commit d51b6688a7

@ -177,6 +177,9 @@ void IncomingTransfer::processMessage(const Message& message)
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();

Loading…
Cancel
Save