We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d009b7e commit 904dfe9Copy full SHA for 904dfe9
1 file changed
omodsim/menuconnect.cpp
@@ -91,7 +91,10 @@ void MenuConnect::changeEvent(QEvent* event)
91
switch(data.first)
92
{
93
case ConnectionType::Tcp:
94
- a->setText(tr("Modbus/TCP Srv"));
+ if(data.second.isEmpty())
95
+ a->setText(tr("Modbus/TCP Srv"));
96
+ else
97
+ a->setText(QString(tr("Modbus/TCP Srv %1").arg(data.second)));
98
break;
99
case ConnectionType::Serial:
100
a->setText(QString(tr("Port %1")).arg(data.second));
0 commit comments