From 56990d318b15eacf7d3cc7425ab62f68da099ddf Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 18 Oct 2004 09:08:13 +0000 Subject: fix of tmp file path for desktop version --- (limited to 'kmicromail') diff --git a/kmicromail/viewmail.cpp b/kmicromail/viewmail.cpp index 6e560d7..32a3b7c 100644 --- a/kmicromail/viewmail.cpp +++ b/kmicromail/viewmail.cpp @@ -253,7 +253,11 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int case 2: { +#ifdef DESKTOP_VERSION + QString tmpfile = locateLocal( "tmp", "opiemail-image"); +#else QString tmpfile = "/tmp/opiemail-image"; +#endif encodedString*content = m_recMail->Wrapper()->fetchDecodedPart( m_recMail, m_body->Parts()[ ( ( AttachItem* )item )->Partnumber() ] ); if (content) { QFile output(tmpfile); -- cgit v0.9.0.2