summaryrefslogtreecommitdiffstats
path: root/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_info_widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_info_widget.cpp')
-rw-r--r--tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_info_widget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_info_widget.cpp b/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_info_widget.cpp
index fed5d15..e9962ee 100644
--- a/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_info_widget.cpp
+++ b/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_info_widget.cpp
@@ -29,7 +29,7 @@
#include <tqcheckbox.h>
#include <tqlayout.h>
-// knm headers
+// tdenm headers
#include "tdenetman-connection_setting_info_widget.h"
using namespace ConnectionSettings;
@@ -38,7 +38,7 @@ InfoWidgetImpl::InfoWidgetImpl(TDENetworkConnection* conn, TQWidget* parent, con
: WidgetInterface(parent, name, fl)
{
_infosetting = conn;
-
+ _parentdialog = dynamic_cast<ConnectionSettingsDialogImpl*>(parent);
TQVBoxLayout* layout = new TQVBoxLayout(this, 1, 1);
_mainWid = new ConnectionSettingInfoWidget(this);
@@ -65,12 +65,14 @@ void
InfoWidgetImpl::slotNameChanged(const TQString& name)
{
_infosetting->friendlyName = name;
+ if (_parentdialog) _parentdialog->slotEnableButtons(); // Update lockouts
}
void
InfoWidgetImpl::slotAutoconnectChanged(bool autoconnect)
{
_infosetting->autoConnect = autoconnect;
+ if (_parentdialog) _parentdialog->slotEnableButtons(); // Update lockouts
}
#include "tdenetman-connection_setting_info_widget.moc"