Diffstat (limited to 'noncore/settings/networksettings') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/connect.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
@@ -108,16 +108,19 @@ ConnectWidget::ConnectWidget(InterfacePPP *ifp, QWidget *parent, const char *nam | |||
108 | messg = new QLabel(this, "messg"); | 108 | messg = new QLabel(this, "messg"); |
109 | messg->setFrameStyle(QFrame::Panel|QFrame::Sunken); | 109 | messg->setFrameStyle(QFrame::Panel|QFrame::Sunken); |
110 | messg->setAlignment(AlignCenter); | 110 | messg->setAlignment(AlignCenter); |
111 | messg->setText(i18n("Unable to create modem lock file.")); | 111 | messg->setText(i18n("Unable to create modem lock file.")); |
112 | messg->setMinimumHeight(messg->sizeHint().height() + 5); | 112 | messg->setMinimumHeight(messg->sizeHint().height() + 5); |
113 | // int messw = (messg->sizeHint().width() * 12) / 10; | 113 | // int messw = (messg->sizeHint().width() * 12) / 10; |
114 | // messw = QMAX(messw,280); | 114 | // messw = QMAX(messw,280); |
115 | // messg->setMinimumWidth(messw); | 115 | // messg->setMinimumWidth(messw); |
116 | if (_ifaceppp->getStatus()) | ||
117 | messg->setText(i18n("Online")); | ||
118 | else | ||
116 | messg->setText(i18n("Offline")); | 119 | messg->setText(i18n("Offline")); |
117 | l0->addSpacing(10); | 120 | l0->addSpacing(10); |
118 | l0->addWidget(messg); | 121 | l0->addWidget(messg); |
119 | l0->addSpacing(10); | 122 | l0->addSpacing(10); |
120 | 123 | ||
121 | QHBoxLayout *l1 = new QHBoxLayout(10); | 124 | QHBoxLayout *l1 = new QHBoxLayout(10); |
122 | tl->addLayout(l1); | 125 | tl->addLayout(l1); |
123 | l1->addStretch(1); | 126 | l1->addStretch(1); |
@@ -1127,16 +1130,19 @@ void ConnectWidget::if_waiting_slot() { | |||
1127 | 1130 | ||
1128 | emit debugMessage(i18n("Done")); | 1131 | emit debugMessage(i18n("Done")); |
1129 | set_con_speed_string(); | 1132 | set_con_speed_string(); |
1130 | 1133 | ||
1131 | // p_kppp->con_win->setConnectionSpeed(p_kppp->con_speed); | 1134 | // p_kppp->con_win->setConnectionSpeed(p_kppp->con_speed); |
1132 | this->hide(); | 1135 | this->hide(); |
1133 | messg->setText(""); | 1136 | messg->setText(""); |
1134 | 1137 | ||
1138 | _ifaceppp->setStatus( true ); | ||
1139 | // emit _ifaceppp->updateInterface(_ifaceppp); | ||
1140 | |||
1135 | // prepare the con_win so as to have the right size for | 1141 | // prepare the con_win so as to have the right size for |
1136 | // accounting / non-accounting mode | 1142 | // accounting / non-accounting mode |
1137 | // if(p_kppp->acct != 0) | 1143 | // if(p_kppp->acct != 0) |
1138 | // p_kppp->con_win->accounting(p_kppp->acct->running()); | 1144 | // p_kppp->con_win->accounting(p_kppp->acct->running()); |
1139 | // else | 1145 | // else |
1140 | // p_kppp->con_win->accounting(false); | 1146 | // p_kppp->con_win->accounting(false); |
1141 | 1147 | ||
1142 | // if (_ifaceppp->data()->get_dock_into_panel()) { | 1148 | // if (_ifaceppp->data()->get_dock_into_panel()) { |