Changeset 8cb2bc7 in confclerk_git


Ignore:
Timestamp:
01/11/17 21:48:53 (5 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
3cd9fe6
Parents:
4a87a3b
Message:

eventdialog: only convertFromPlainText description and abstract if they are not richtext.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/eventdialog.cpp

    r4a87a3b r8cb2bc7  
    4949    // abstract
    5050    info += QString("<h2>%1</h2>\n").arg(tr("Abstract"));
    51     info += Qt::convertFromPlainText(event.abstract(), Qt::WhiteSpaceNormal);
     51    if (Qt::mightBeRichText(event.abstract())) {
     52        info += event.abstract();
     53    } else {
     54        info += Qt::convertFromPlainText(event.abstract(), Qt::WhiteSpaceNormal);
     55    }
    5256
    5357    // description
    5458    info += QString("<h2>%1</h2>\n").arg(tr("Description"));
    55     info += Qt::convertFromPlainText(event.description(), Qt::WhiteSpaceNormal);
     59    if (Qt::mightBeRichText(event.description())) {
     60        info += event.description();
     61    } else {
     62        info += Qt::convertFromPlainText(event.description(), Qt::WhiteSpaceNormal);
     63    }
    5664
    5765    // links
Note: See TracChangeset for help on using the changeset viewer.