aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-14 20:28:01 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-14 20:28:01 +0000
commit7daaccd9a16f1a39e7b0b4df94876de113a3523b (patch)
treec63943ab3a9b5429051257b28c75c875e5f5bd1e /gpgwin.cpp
parentstart of using own model for attachment-table-view, not all functionality (sa... (diff)
downloadgpg4usb-7daaccd9a16f1a39e7b0b4df94876de113a3523b.tar.gz
gpg4usb-7daaccd9a16f1a39e7b0b4df94876de113a3523b.zip
more work on tablemodel, attached files are saveable again
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@329 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 2fd7b32..1742b4a 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -523,10 +523,10 @@ void GpgWin::parseMime(QByteArray *message) {
Mime *mime = new Mime(message);
foreach(MimePart tmp, mime->parts()) {
- if(tmp.getValue("Content-Type")=="text/plain") {
+ if(tmp.getValue("Content-Type")=="text/plain"
+ && tmp.getValue("Content-Transfer-Encoding") != "base64") {
pText.append(QString(tmp.body));
- }
- else {
+ } else {
(mAttachments->addMimePart(&tmp));
showmadock=true;
}