diff --git a/UI/qt-wrappers.cpp b/UI/qt-wrappers.cpp index 2755b7ccc..5d8a9cb28 100644 --- a/UI/qt-wrappers.cpp +++ b/UI/qt-wrappers.cpp @@ -93,11 +93,14 @@ void OBSMessageBox::information( void OBSMessageBox::warning( QWidget *parent, const QString &title, - const QString &text) + const QString &text, + bool enableRichText) { QMessageBox mb(QMessageBox::Warning, title, text, QMessageBox::Ok, parent); + if (enableRichText) + mb.setTextFormat(Qt::RichText); mb.setButtonText(QMessageBox::Ok, QTStr("OK")); mb.exec(); } diff --git a/UI/qt-wrappers.hpp b/UI/qt-wrappers.hpp index 58c6a7781..ab301097b 100644 --- a/UI/qt-wrappers.hpp +++ b/UI/qt-wrappers.hpp @@ -51,7 +51,8 @@ public: static void warning( QWidget *parent, const QString &title, - const QString &text); + const QString &text, + bool enableRichText = false); static void critical( QWidget *parent, const QString &title,