Skip to content

Commit

Permalink
fix: Crash after manual proxy is saved
Browse files Browse the repository at this point in the history
Bug: https://pms.uniontech.com/bug-view-273791.html
Log: Crash after manual proxy is saved
  • Loading branch information
ArchieMeng authored and deepin-bot[bot] committed Sep 13, 2024
1 parent dfb59e6 commit f7cc3a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dcc-network-plugin/window/sysproxymodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ void SysProxyModule::initManualView(QWidget *w)
group->appendItem(proxyEdit);
group->appendItem(portEdit);
connect(proxyEdit->textEdit(), &QLineEdit::textChanged, this, [this] (const QString &text) {
if (!text.isEmpty()) {
if (!text.isEmpty() && m_buttonTuple) {
m_buttonTuple->setEnabled(true);
}
});
Expand Down Expand Up @@ -235,7 +235,7 @@ void SysProxyModule::initManualView(QWidget *w)
resetData(ProxyMethod::Manual);
ProxyController *proxyController = NetworkController::instance()->proxyController();
connect(m_ignoreList, &DTextEdit::textChanged, this, [this] {
if (!m_ignoreList->toPlainText().isEmpty()) {
if (!m_ignoreList->toPlainText().isEmpty() && m_buttonTuple) {
m_buttonTuple->setEnabled(true);
}
});
Expand Down

0 comments on commit f7cc3a7

Please sign in to comment.