mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-26 00:05:34 -04:00
parent
a7f4e2d0cd
commit
d26cff520f
1 changed files with 15 additions and 2 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QSplitter>
|
#include <QSplitter>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
#include <QProcess>
|
||||||
|
|
||||||
#include "autotype/AutoType.h"
|
#include "autotype/AutoType.h"
|
||||||
#include "core/Config.h"
|
#include "core/Config.h"
|
||||||
|
@ -452,9 +453,21 @@ void DatabaseWidget::openUrl()
|
||||||
|
|
||||||
void DatabaseWidget::openUrlForEntry(Entry* entry)
|
void DatabaseWidget::openUrlForEntry(Entry* entry)
|
||||||
{
|
{
|
||||||
if (!entry->url().isEmpty()) {
|
QString UrlString = entry->url();
|
||||||
QDesktopServices::openUrl(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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDesktopServices::openUrl(UrlString);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DatabaseWidget::createGroup()
|
void DatabaseWidget::createGroup()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue