From bcc3108c3d660e54fd14eb527ea4fd090ebf1564 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 13 Jul 2015 22:36:20 +0200 Subject: [PATCH] Coding style cleanup. --- src/gui/DatabaseWidget.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 0b5e1545d..112739efb 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -453,14 +453,16 @@ void DatabaseWidget::openUrl() void DatabaseWidget::openUrlForEntry(Entry* entry) { - QString UrlString = entry->resolvePlaceholders(entry->url()); - if (UrlString.isEmpty()) + 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); + if (urlString.startsWith("cmd://") && (urlString.length() > 6)) { + QProcess::startDetached(urlString.mid(6)); + } + else { + QDesktopServices::openUrl(urlString); } }