summaryrefslogtreecommitdiffabout
path: root/libkdepim/phoneaccess.cpp
Side-by-side diff
Diffstat (limited to 'libkdepim/phoneaccess.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/phoneaccess.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/libkdepim/phoneaccess.cpp b/libkdepim/phoneaccess.cpp
index c0bd6cc..357cd39 100644
--- a/libkdepim/phoneaccess.cpp
+++ b/libkdepim/phoneaccess.cpp
@@ -41,5 +41,5 @@ void PhoneAccess::writeConfig( QString device, QString connection, QString model
#endif
//qDebug("save %d ", load );
- QString content;
+ QString content = "[gammu]\n";;
bool write = false;
bool addPort = true, addConnection = true, addModel = true;
@@ -54,5 +54,5 @@ void PhoneAccess::writeConfig( QString device, QString connection, QString model
//qDebug("*%s* ", line.latin1() );
if ( line.left(7 ) == "[gammu]" ) {
- ;
+ ;
} else
if ( line.left(4 ) == "port" ) {
@@ -94,8 +94,6 @@ void PhoneAccess::writeConfig( QString device, QString connection, QString model
}
}
-
+
if ( addConnection ) {
- if ( ! write )
- content += "[gammu]\n";
write = true;
content += "connection = ";
@@ -104,6 +102,4 @@ void PhoneAccess::writeConfig( QString device, QString connection, QString model
}
if ( addPort ) {
- if ( ! write )
- content += "[gammu]\n";
write = true;
content += "port = ";
@@ -113,6 +109,4 @@ void PhoneAccess::writeConfig( QString device, QString connection, QString model
}
if ( addModel ) {
- if ( ! write )
- content += "[gammu]\n";
write = true;
content += "model = ";