Use plain text mode in video description label to avoid HTML trouble
authorWuzzy <Wuzzy2@mail.ru>
Sat, 25 Aug 2018 12:12:15 +0200
changeset 13696 b5a7f83fa607
parent 13694 27e5e311c7a3
child 13697 70c8feb81d35
Use plain text mode in video description label to avoid HTML trouble
QTfrontend/ui/page/pagevideos.cpp
--- a/QTfrontend/ui/page/pagevideos.cpp	Wed Aug 22 15:00:04 2018 +0200
+++ b/QTfrontend/ui/page/pagevideos.cpp	Sat Aug 25 12:12:15 2018 +0200
@@ -170,9 +170,9 @@
                                            Qt::TextSelectableByKeyboard |
                                            Qt::LinksAccessibleByMouse |
                                            Qt::LinksAccessibleByKeyboard);
-        labelDesc->setTextFormat(Qt::RichText);
+        labelDesc->setTextFormat(Qt::PlainText);
         labelDesc->setWordWrap(true);
-        labelDesc->setOpenExternalLinks(true);
+        labelDesc->setOpenExternalLinks(false);
 
         // buttons: play and delete
         btnPlay = new QPushButton(QPushButton::tr("Play"), pDescGroup);
@@ -531,8 +531,6 @@
             item->prefix.truncate(pt);
     }
 
-    desc.replace("\n", "<br/>");
-
     labelDesc->setText(desc);
 
     if (!item->prefix.isEmpty())