summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/pppmodule.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/ppp/pppmodule.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/pppmodule.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/noncore/settings/networksettings/ppp/pppmodule.cpp b/noncore/settings/networksettings/ppp/pppmodule.cpp
index fb2f3e5..3a97535 100644
--- a/noncore/settings/networksettings/ppp/pppmodule.cpp
+++ b/noncore/settings/networksettings/ppp/pppmodule.cpp
@@ -58,3 +58,4 @@ QWidget *PPPModule::configure(Interface *i){
58 qDebug("return ModemWidget"); 58 qDebug("return ModemWidget");
59 PPPConfigWidget *pppconfig = new PPPConfigWidget( 0, "PPPConfig", false, 59 PPPConfigWidget *pppconfig = new PPPConfigWidget( i, 0, "PPPConfig",
60 false,
60 Qt::WDestructiveClose ); 61 Qt::WDestructiveClose );
@@ -96,14 +97,15 @@ Interface *PPPModule::addNewInterface(const QString &newInterface){
96 97
97 PPPConfigWidget imp(0, "PPPConfigImp", true); 98 Interface *iface;
99 iface = new Interface();
100 PPPConfigWidget imp(iface, 0, "PPPConfigImp", true);
98 imp.showMaximized(); 101 imp.showMaximized();
99 if(imp.exec() == QDialog::Accepted ){ 102 if(imp.exec() == QDialog::Accepted ){
100 qDebug("ACCEPTED"); 103 iface->setModuleOwner( this );
101 PPPData::data()->save();
102 Interface *iface;
103 iface = new Interface( 0, PPPData::data()->modemDevice() );
104 iface->setHardwareName( PPPData::data()->accname() );
105 list.append( iface ); 104 list.append( iface );
106 return iface; 105 return iface;
106 }else {
107 delete iface;
108 iface = NULL;
107 } 109 }
108 return NULL; 110 return iface;
109} 111}