mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix resolving placeholders in urls (#3281)
* Replace placeholders in URLs copied from popup menu on the entry preview widget. * Replace placeholders in URLs opened by double-clicking URL field in the entry table.
This commit is contained in:
parent
e40f10657d
commit
c5a93ca215
@ -696,7 +696,7 @@ void DatabaseWidget::openUrlForEntry(Entry* entry)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
QUrl url = QUrl::fromUserInput(entry->url());
|
||||
QUrl url = QUrl::fromUserInput(entry->resolveMultiplePlaceholders(entry->url()));
|
||||
if (!url.isEmpty()) {
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ void EntryPreviewWidget::updateEntryGeneralTab()
|
||||
const QString url = m_currentEntry->url();
|
||||
if (!url.isEmpty()) {
|
||||
// URL is well formed and can be opened in a browser
|
||||
m_ui->entryUrlLabel->setUrl(url);
|
||||
m_ui->entryUrlLabel->setUrl(m_currentEntry->resolveMultiplePlaceholders(url));
|
||||
m_ui->entryUrlLabel->setCursor(Qt::PointingHandCursor);
|
||||
m_ui->entryUrlLabel->setOpenExternalLinks(false);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user