aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index e1587ddfe..eb199f0ab 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -159,8 +159,8 @@ const QString get_dc_nickname(const char *model, uint32_t deviceid)
{
const DiveComputerNode *existNode = dcList.getExact(model, deviceid);
if (!existNode)
- return QString("");
- if (existNode->nickName != "")
+ return QString();
+ else if (!existNode->nickName.isEmpty())
return existNode->nickName;
else
return model;