Diffstat (limited to 'noncore/net/mailit/writemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/writemail.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/noncore/net/mailit/writemail.cpp b/noncore/net/mailit/writemail.cpp index 1a7185e..70332a9 100644 --- a/noncore/net/mailit/writemail.cpp +++ b/noncore/net/mailit/writemail.cpp | |||
@@ -63,9 +63,9 @@ void WriteMail::init() | |||
63 | addMenu = new QPopupMenu(menu); | 63 | addMenu = new QPopupMenu(menu); |
64 | menu->insertItem( tr( "&Add" ), addMenu); | 64 | menu->insertItem( tr( "&Add" ), addMenu); |
65 | 65 | ||
66 | bar = new QToolBar(this); | 66 | bar = new QToolBar(this); |
67 | attatchButton = new QAction(tr("Attatchment"), Resource::loadPixmap("fileopen"), QString::null, 0, this, 0); | 67 | attatchButton = new QAction(tr("Attatchment"), Resource::loadPixmap("mailit/attach"), QString::null, 0, this, 0); |
68 | attatchButton->addTo(bar); | 68 | attatchButton->addTo(bar); |
69 | attatchButton->addTo(addMenu); | 69 | attatchButton->addTo(addMenu); |
70 | connect( attatchButton, SIGNAL( activated() ), this, SLOT( attatchFile() ) ); | 70 | connect( attatchButton, SIGNAL( activated() ), this, SLOT( attatchFile() ) ); |
71 | 71 | ||
@@ -170,11 +170,9 @@ void WriteMail::accept() | |||
170 | 170 | ||
171 | QStringList::Iterator itType = attatchmentsType.begin(); | 171 | QStringList::Iterator itType = attatchmentsType.begin(); |
172 | 172 | ||
173 | Enclosure e; | 173 | Enclosure e; |
174 | for ( QStringList::Iterator it = attatchedFiles.begin(); | 174 | for ( QStringList::Iterator it = attatchedFiles.begin(); it != attatchedFiles.end(); ++it ) { |
175 | it != attatchedFiles.end(); ++it ) { | ||
176 | |||
177 | e.id = idCount; | 175 | e.id = idCount; |
178 | e.originalName = (*it).latin1(); | 176 | e.originalName = (*it).latin1(); |
179 | e.contentType = (*itType).latin1(); | 177 | e.contentType = (*itType).latin1(); |
180 | e.contentAttribute = (*itType).latin1(); | 178 | e.contentAttribute = (*itType).latin1(); |