1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Add full name to the list, if both name and last name are defined

This commit is contained in:
Mladen Pejaković 2012-12-12 15:24:26 +01:00
parent 508dcbb95c
commit 517cb4efd0

View File

@ -115,6 +115,12 @@ void PIM_Handler::populateWebViewMenu(QMenu* menu, WebView* view, const QWebHitT
QMenu* pimMenu = new QMenu(tr("Insert Personal Information"));
pimMenu->setIcon(QIcon(":/PIM/data/PIM.png"));
if (!m_allInfo[PI_FirstName].isEmpty() && !m_allInfo[PI_LastName].isEmpty()) {
const QString fullname = m_allInfo[PI_FirstName] + " " + m_allInfo[PI_LastName];
QAction* action = pimMenu->addAction(fullname, this, SLOT(pimInsert()));
action->setData(fullname);
}
for (int i = 0; i < PI_Max; ++i) {
const QString &info = m_allInfo[PI_Type(i)];
if (info.isEmpty()) {