mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 23:39:45 -05:00
parent
04fac249f9
commit
4f12f57a0b
@ -971,7 +971,11 @@ void DatabaseWidget::openUrlForEntry(Entry* entry)
|
||||
} else {
|
||||
QUrl url = QUrl::fromUserInput(entry->resolveMultiplePlaceholders(entry->url()));
|
||||
if (!url.isEmpty()) {
|
||||
#ifdef KEEPASSXC_DIST_APPIMAGE
|
||||
QProcess::execute("xdg-open", {url.toString(QUrl::FullyEncoded)});
|
||||
#else
|
||||
QDesktopServices::openUrl(url);
|
||||
#endif
|
||||
|
||||
if (config()->get(Config::MinimizeOnOpenUrl).toBool()) {
|
||||
getMainWindow()->minimizeOrHide();
|
||||
|
@ -1205,7 +1205,11 @@ void MainWindow::showUpdateCheckDialog()
|
||||
|
||||
void MainWindow::customOpenUrl(QString url)
|
||||
{
|
||||
#ifdef KEEPASSXC_DIST_APPIMAGE
|
||||
QProcess::execute("xdg-open", {url});
|
||||
#else
|
||||
QDesktopServices::openUrl(QUrl(url));
|
||||
#endif
|
||||
}
|
||||
|
||||
void MainWindow::openDonateUrl()
|
||||
|
Loading…
Reference in New Issue
Block a user