1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge branch 'pr1291'

This commit is contained in:
tux3 2015-02-26 22:30:16 +01:00
commit 337bf0cd2b
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -470,7 +470,9 @@ void Widget::onStatusSet(Status status)
void Widget::setWindowTitle(const QString& title)
{
QMainWindow::setWindowTitle("qTox - " + title);
QString tmp = title;
/// <[^>]*> Regexp to remove HTML tags, in case someone used them in title
QMainWindow::setWindowTitle("qTox - " + tmp.remove(QRegExp("<[^>]*>")));
}
void Widget::forceShow()