summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/profile/profileedit.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings2/profile/profileedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/profile/profileedit.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/profile/profileedit.cpp b/noncore/settings/networksettings2/profile/profileedit.cpp
index 88aab15..ad943fe 100644
--- a/noncore/settings/networksettings2/profile/profileedit.cpp
+++ b/noncore/settings/networksettings2/profile/profileedit.cpp
@@ -13,11 +13,15 @@
ProfileEdit::ProfileEdit( QWidget * Parent, ANetNodeInstance * TNNI ) :
ProfileGUI( Parent ), RefreshTimer(this) {
InterfaceInfo * II;
+ II = TNNI->networkSetup()->assignedInterface();
+ Log(( "Interface %p %p %p: %d\n", II,
+ TNNI, TNNI->networkSetup(), (II) ? II->IsUp : 0 ));
+
NNI = TNNI;
Dev = NNI->runtime()->device();
- if( ( II = NNI->connection()->assignedInterface() ) ) {
+ if( ( II = NNI->networkSetup()->assignedInterface() ) ) {
Refresh_CB->setEnabled( TRUE );
Snd_GB->setEnabled( TRUE );
Rcv_GB->setEnabled( TRUE );
@@ -76,9 +80,9 @@ bool ProfileEdit::commit( ProfileData & Data ) {
return SM;
}
void ProfileEdit::SLOT_Refresh( void ) {
- InterfaceInfo * II = NNI->connection()->assignedInterface();
+ InterfaceInfo * II = NNI->networkSetup()->assignedInterface();
NSResources->system().refreshStatistics( *II );
RcvBytes_LBL->setText( II->RcvBytes );
SndBytes_LBL->setText( II->SndBytes );
RcvErrors_LBL->setText( II->RcvErrors );