[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kppp
From: Laurent Montel <montel () kde ! org>
Date: 2008-01-05 20:17:12
Message-ID: 1199564232.784092.28589.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 757753 by mlaurent:
Fix crash
M +9 -7 pppdata.cpp
--- trunk/KDE/kdenetwork/kppp/pppdata.cpp #757752:757753
@@ -409,7 +409,6 @@
return true;
}
-
bool PPPData::deleteModem() {
if(cmodem < 0)
return false;
@@ -441,13 +440,16 @@
// make sure the top modem is cleared
setModemByIndex(modemhighcount);
map = config->entryMap(cmodemgroup);
- it = map.begin();
- KConfigGroup cg2(config, cmodemgroup);
- while (!it.key().isNull()) {
- cg2.writeEntry(it.key(), "");
- it++;
+ if( !map.isEmpty())
+ {
+ it = map.begin();
+ KConfigGroup cg2(config, cmodemgroup);
+ while (!it.key().isEmpty()) {
+ if(!it.key().isEmpty())
+ cg2.writeEntry(it.key(), "");
+ it++;
+ }
}
-
modemhighcount--;
if(cmodem > modemhighcount)
cmodem = modemhighcount;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic