mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-16 11:26:11 -04:00
Code cleanups
This commit is contained in:
parent
d26cff520f
commit
0458dad6dc
@ -453,21 +453,16 @@ void DatabaseWidget::openUrl()
|
||||
|
||||
void DatabaseWidget::openUrlForEntry(Entry* entry)
|
||||
{
|
||||
QString UrlString = entry->url();
|
||||
QString UrlString = entry->resolvePlaceholders(entry->url());
|
||||
if (UrlString.isEmpty())
|
||||
return;
|
||||
|
||||
UrlString.replace("{TITLE}", entry->title(), Qt::CaseInsensitive);
|
||||
UrlString.replace("{USERNAME}", entry->username(), Qt::CaseInsensitive);
|
||||
UrlString.replace("{PASSWORD}", entry->password(), Qt::CaseInsensitive);
|
||||
|
||||
if (UrlString.startsWith("cmd://") && UrlString.length()>6){
|
||||
QProcess::startDetached(UrlString.right(UrlString.length()-6));
|
||||
return;
|
||||
QProcess::startDetached(UrlString.mid(6));
|
||||
} else {
|
||||
QDesktopServices::openUrl(UrlString);
|
||||
}
|
||||
|
||||
QDesktopServices::openUrl(UrlString);
|
||||
|
||||
}
|
||||
|
||||
void DatabaseWidget::createGroup()
|
||||
|
Loading…
x
Reference in New Issue
Block a user