mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-17 02:46:23 +00:00
fixed to plaintext
This commit is contained in:
parent
265b74ebaf
commit
0c87aa81a8
@ -21,6 +21,7 @@
|
||||
#include <QTcpSocket>
|
||||
#include <Qt>
|
||||
#include <QTextDocumentFragment>
|
||||
#include <QTextDocument>
|
||||
|
||||
|
||||
|
||||
@ -29,7 +30,9 @@ int Notification::DefaultTimeout=10;
|
||||
|
||||
QString Notification::toPlainText ( const QString &string )
|
||||
{
|
||||
return QTextDocumentFragment::fromHtml(string).toPlainText();
|
||||
if( Qt::mightBeRichText(string))
|
||||
return QTextDocumentFragment::fromHtml(string).toPlainText();
|
||||
return QString(string);
|
||||
}
|
||||
|
||||
Notification::Notification ( uint id ) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user