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