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:
commit
337bf0cd2b
|
@ -470,7 +470,9 @@ void Widget::onStatusSet(Status status)
|
||||||
|
|
||||||
void Widget::setWindowTitle(const QString& title)
|
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()
|
void Widget::forceShow()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user