Skip to content

Commit ec8eb99

Browse files
committed
Plugin::FileTransfer: fix compile error
1 parent cb7b06d commit ec8eb99

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Plugins/FileTransfer/OperateFileTransfer.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const QString COperateFileTransfer::Name()
148148
}
149149
if(!pNet->GetHost().isEmpty()) {
150150
if(m_Parameter.GetGlobalParameters()
151-
&& m_Parameter.GetGlobalParameters()->GetShowProtocolPrefix())
151+
&& m_Parameter.GetGlobalParameters()->GetNameStyles() == CParameterPlugin::NameStyle::Protocol)
152152
szName = Protocol() + ": ";
153153
szName += pNet->GetHost()
154154
+ ":" + QString::number(pNet->GetPort());
@@ -181,8 +181,13 @@ const QString COperateFileTransfer::Description()
181181
szDescription += tr("Server address: ") + net.GetHost()
182182
+ ":" + QString::number(net.GetPort()) + "\n";
183183

184-
if(GetSecurityLevel() != SecurityLevel::No)
185-
szDescription += tr("Security level: ") + GetSecurityLevelString() + "\n";
184+
CSecurityLevel sl(GetSecurityLevel());
185+
if(!(GetSecurityLevel() & CSecurityLevel::Level::No)) {
186+
szDescription += tr("Security level: ");
187+
if(!sl.GetUnicodeIcon().isEmpty())
188+
szDescription += sl.GetUnicodeIcon() + " ";
189+
szDescription += sl.GetString() + "\n";
190+
}
186191

187192
if(!GetPlugin()->Description().isEmpty())
188193
szDescription += tr("Description: ") + GetPlugin()->Description();

0 commit comments

Comments
 (0)