fix bug 143023
This commit is contained in:
parent
311ef6aa13
commit
ff5fba7afd
|
@ -369,7 +369,6 @@ void NetDetail::initUI()
|
|||
cancelBtn->setText(tr("Cancel"));
|
||||
|
||||
forgetBtn = new QPushButton(this);
|
||||
forgetBtn->setText(tr("Forget this network"));
|
||||
|
||||
QVBoxLayout *centerlayout = new QVBoxLayout(centerWidget);
|
||||
centerlayout->setContentsMargins(CENTER_LAYOUT_MARGINS);
|
||||
|
@ -415,7 +414,12 @@ void NetDetail::initComponent()
|
|||
});
|
||||
|
||||
connect(confimBtn, SIGNAL(clicked()), this, SLOT(on_btnConfirm_clicked()));
|
||||
if (isWlan && !m_uuid.isEmpty()) {
|
||||
if (!m_uuid.isEmpty()) {
|
||||
if (isWlan) {
|
||||
forgetBtn->setText(tr("Forget this network"));
|
||||
} else {
|
||||
forgetBtn->setText(tr("Delete this network"));
|
||||
}
|
||||
forgetBtn->show();
|
||||
connect(forgetBtn, SIGNAL(clicked()), this, SLOT(on_btnForget_clicked()));
|
||||
} else {
|
||||
|
|
Binary file not shown.
|
@ -852,6 +852,10 @@
|
|||
<source>Forget this network</source>
|
||||
<translation>དྲ་རྒྱ་འདི་བརྗེད་སོང་།</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Delete this network</source>
|
||||
<translation>དྲ་རྒྱ་དེ་བསུབ་དགོས།</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="403"/>
|
||||
<source>Add Lan Connect</source>
|
||||
|
|
Binary file not shown.
|
@ -851,6 +851,10 @@
|
|||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="372"/>
|
||||
<source>Forget this network</source>
|
||||
<translation>忘记此网络</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Delete this network</source>
|
||||
<translation>删除此网络</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="403"/>
|
||||
|
|
Loading…
Reference in New Issue