mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Merge branch 'pr-94'
https://github.com/keepassx/keepassx/pull/94 Closes #244
This commit is contained in:
commit
274f86fd04
@ -25,6 +25,7 @@
|
||||
#include <QLineEdit>
|
||||
#include <QSplitter>
|
||||
#include <QTimer>
|
||||
#include <QProcess>
|
||||
|
||||
#include "autotype/AutoType.h"
|
||||
#include "core/Config.h"
|
||||
@ -452,9 +453,18 @@ void DatabaseWidget::openUrl()
|
||||
|
||||
void DatabaseWidget::openUrlForEntry(Entry* entry)
|
||||
{
|
||||
if (!entry->url().isEmpty()) {
|
||||
QDesktopServices::openUrl(entry->url());
|
||||
QString urlString = entry->resolvePlaceholders(entry->url());
|
||||
if (urlString.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (urlString.startsWith("cmd://") && (urlString.length() > 6)) {
|
||||
QProcess::startDetached(urlString.mid(6));
|
||||
}
|
||||
else {
|
||||
QDesktopServices::openUrl(urlString);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void DatabaseWidget::createGroup()
|
||||
|
Loading…
Reference in New Issue
Block a user