1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fixed starting AboutDialog without parent.

This commit is contained in:
S. Razi Alavizadeh 2012-09-17 14:54:05 +04:30 committed by nowrep
parent 738a0b9791
commit 6d4005cd7b

View File

@ -65,7 +65,7 @@ void AboutDialog::showAbout()
m_aboutHtml += QString("<p>&copy; %1 %2<br/>").arg(QupZilla::COPYRIGHT, QupZilla::AUTHOR);
m_aboutHtml += tr("<small>Build time: %1 </small></p>").arg(QupZilla::BUILDTIME);
m_aboutHtml += QString("<p><a href=%1>%1</a></p>").arg(QupZilla::WWWADDRESS);
m_aboutHtml += "<p>" + mApp->getWindow()->weView()->page()->userAgentForUrl(QUrl()) + "</p>";
m_aboutHtml += "<p>" + (mApp->windowCount() > 0 ? mApp->getWindow()->weView()->page()->userAgentForUrl(QUrl()) : QString()) + "</p>";
m_aboutHtml += "</div></center>";
}
ui->textBrowser->setHtml(m_aboutHtml);