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:
parent
508dcbb95c
commit
517cb4efd0
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user