[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kppp
From:       Carsten Wolff <wolff () kde ! org>
Date:       2004-12-17 15:30:56
Message-ID: 20041217153056.800791BBBB () office ! kde ! org
[Download RAW message or body]

CVS commit by wolff: 

keep the modem-selection in the combobox and in gpppdata in sync


  M +3 -0      modems.cpp   1.5


--- kdenetwork/kppp/modems.cpp  #1.4:1.5
@@ -104,9 +104,12 @@ ModemsWidget::ModemsWidget( QWidget *par
 
   //load up account list from gppdata to the list box
+  // but keep the current one selected in gpppdata
   if(gpppdata.modemCount() > 0) {
+    const QString currentmodem = gpppdata.modname();
     for(int i=0; i <= gpppdata.modemCount()-1; i++) {
       gpppdata.setModemByIndex(i);
       modemlist_l->insertItem(gpppdata.modname());
     }
+    gpppdata.setModem(currentmodem);
   }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic