mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Coding style cleanup.
This commit is contained in:
parent
0458dad6dc
commit
bcc3108c3d
@ -453,14 +453,16 @@ void DatabaseWidget::openUrl()
|
|||||||
|
|
||||||
void DatabaseWidget::openUrlForEntry(Entry* entry)
|
void DatabaseWidget::openUrlForEntry(Entry* entry)
|
||||||
{
|
{
|
||||||
QString UrlString = entry->resolvePlaceholders(entry->url());
|
QString urlString = entry->resolvePlaceholders(entry->url());
|
||||||
if (UrlString.isEmpty())
|
if (urlString.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (UrlString.startsWith("cmd://") && UrlString.length()>6){
|
if (urlString.startsWith("cmd://") && (urlString.length() > 6)) {
|
||||||
QProcess::startDetached(UrlString.mid(6));
|
QProcess::startDetached(urlString.mid(6));
|
||||||
} else {
|
}
|
||||||
QDesktopServices::openUrl(UrlString);
|
else {
|
||||||
|
QDesktopServices::openUrl(urlString);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user