mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Avoid calling QDesktopServices::openUrl() when cmd is empty.
This commit is contained in:
parent
274f86fd04
commit
af84261eb6
@ -458,8 +458,10 @@ void DatabaseWidget::openUrlForEntry(Entry* entry)
|
||||
return;
|
||||
}
|
||||
|
||||
if (urlString.startsWith("cmd://") && (urlString.length() > 6)) {
|
||||
QProcess::startDetached(urlString.mid(6));
|
||||
if (urlString.startsWith("cmd://")) {
|
||||
if (urlString.length() > 6) {
|
||||
QProcess::startDetached(urlString.mid(6));
|
||||
}
|
||||
}
|
||||
else {
|
||||
QDesktopServices::openUrl(urlString);
|
||||
|
Loading…
Reference in New Issue
Block a user