summaryrefslogtreecommitdiffstats
path: root/kopete/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols')
-rw-r--r--kopete/protocols/msn/incomingtransfer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kopete/protocols/msn/incomingtransfer.cpp b/kopete/protocols/msn/incomingtransfer.cpp
index 99422ef7..d6a89f38 100644
--- a/kopete/protocols/msn/incomingtransfer.cpp
+++ b/kopete/protocols/msn/incomingtransfer.cpp
@@ -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();