|
|
|
@ -58,6 +58,7 @@ using namespace ConnectionSettings;
|
|
|
|
|
|
|
|
|
|
ConnectionSettingsDialogImpl::ConnectionSettingsDialogImpl(TDENetworkConnection* conn, bool new_conn, TQByteArray networkextid, TQWidget* parent, const char* name, bool modal, WFlags fl)
|
|
|
|
|
: ConnectionSettingsDialog(parent, name, modal, fl)
|
|
|
|
|
, _disable_next_button(false)
|
|
|
|
|
, _conn(conn)
|
|
|
|
|
, _new_conn(new_conn)
|
|
|
|
|
, _networkextid(networkextid)
|
|
|
|
@ -78,7 +79,7 @@ ConnectionSettingsDialogImpl::ConnectionSettingsDialogImpl(TDENetworkConnection*
|
|
|
|
|
pbCancel->setIconSet(SmallIcon("cancel", TQIconSet::Automatic));
|
|
|
|
|
pbSave->setIconSet(SmallIcon("ok", TQIconSet::Automatic));
|
|
|
|
|
|
|
|
|
|
// enable or disable buttons accroding to the current state
|
|
|
|
|
// enable or disable buttons according to the current state
|
|
|
|
|
slotEnableButtons();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -430,7 +431,7 @@ ConnectionSettingsDialogImpl::slotEnableButtons()
|
|
|
|
|
Next: enabled if another widget is available
|
|
|
|
|
*/
|
|
|
|
|
enabled = true;
|
|
|
|
|
if (current == _widgetIds.fromLast()) {
|
|
|
|
|
if (current == _widgetIds.fromLast() || _disable_next_button) {
|
|
|
|
|
enabled = false;
|
|
|
|
|
}
|
|
|
|
|
pbNext->setEnabled(enabled);
|
|
|
|
|