From 9ae55ad05f06d1bff20ea0e0fae59781b503a79b Mon Sep 17 00:00:00 2001 From: dwmw2 Date: Sat, 07 Jun 2003 17:07:43 +0000 Subject: set/use interface status --- (limited to 'noncore') diff --git a/noncore/settings/networksettings/ppp/connect.cpp b/noncore/settings/networksettings/ppp/connect.cpp index 6905d79..2400d7b 100644 --- a/noncore/settings/networksettings/ppp/connect.cpp +++ b/noncore/settings/networksettings/ppp/connect.cpp @@ -113,7 +113,10 @@ ConnectWidget::ConnectWidget(InterfacePPP *ifp, QWidget *parent, const char *nam // int messw = (messg->sizeHint().width() * 12) / 10; // messw = QMAX(messw,280); // messg->setMinimumWidth(messw); - messg->setText(i18n("Offline")); + if (_ifaceppp->getStatus()) + messg->setText(i18n("Online")); + else + messg->setText(i18n("Offline")); l0->addSpacing(10); l0->addWidget(messg); l0->addSpacing(10); @@ -1132,6 +1135,9 @@ void ConnectWidget::if_waiting_slot() { this->hide(); messg->setText(""); + _ifaceppp->setStatus( true ); + // emit _ifaceppp->updateInterface(_ifaceppp); + // prepare the con_win so as to have the right size for // accounting / non-accounting mode // if(p_kppp->acct != 0) -- cgit v0.9.0.2