messagingapp/msgutils/unieditorutils/unieditorplugins/unieditormmsplugin/src/unieditormmsplugin_p.cpp
changeset 44 36f374c67aa8
parent 43 35b64624a9e7
child 47 5b14749788d7
child 52 12db4185673b
equal deleted inserted replaced
43:35b64624a9e7 44:36f374c67aa8
   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(