From 81513082ff980115032275043fbf2d4a661dd0d6 Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 21 Feb 2017 01:13:09 +0800 Subject: [PATCH] [Browser] Some tweaks to password column --- apps/browser/ServerModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/browser/ServerModel.cpp b/apps/browser/ServerModel.cpp index 8d3a5a710..95ccc033d 100644 --- a/apps/browser/ServerModel.cpp +++ b/apps/browser/ServerModel.cpp @@ -34,7 +34,7 @@ QVariant ServerModel::data(const QModelIndex &index, int role) const var = sd.addr; break; case ServerData::PASSW: - var = sd.needPassw; + var = sd.needPassw ? "Yes" : "No"; break; case ServerData::VERSION: var = sd.version; @@ -82,7 +82,7 @@ QVariant ServerModel::headerData(int section, Qt::Orientation orientation, int r var = "Address"; break; case ServerData::PASSW: - var = "P"; + var = "Password?"; break; case ServerData::VERSION: var = "Version";