messagingapp/msgutils/unieditorutils/unieditorplugins/unieditormmsplugin/src/unieditormmsplugin_p.cpp
equal
deleted
inserted
replaced
274 { |
274 { |
275 if( slideContentList.at(i)->mimetype().contains("text") ) |
275 if( slideContentList.at(i)->mimetype().contains("text") ) |
276 { |
276 { |
277 QString textContent; |
277 QString textContent; |
278 QFile file(slideContentList.at(i)->path()); |
278 QFile file(slideContentList.at(i)->path()); |
279 file.open(QIODevice::ReadOnly); |
279 if (file.open(QIODevice::ReadOnly)) { |
280 textContent = file.readAll(); |
280 textContent = file.readAll(); |
281 aMessage.setBodyText(textContent); |
281 aMessage.setBodyText(textContent); |
282 file.close(); |
282 file.close(); |
|
283 } |
|
284 else { |
|
285 return; |
|
286 } |
283 } |
287 } |
284 else |
288 else |
285 { |
289 { |
286 ConvergedMessageAttachment* attachment = |
290 ConvergedMessageAttachment* attachment = |
287 new ConvergedMessageAttachment( |
291 new ConvergedMessageAttachment( |