summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
Diffstat (limited to 'qt4')
-rw-r--r--qt4/TelepathyQt4/key-file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt4/TelepathyQt4/key-file.cpp b/qt4/TelepathyQt4/key-file.cpp
index 44768b770..6c8538f4d 100644
--- a/qt4/TelepathyQt4/key-file.cpp
+++ b/qt4/TelepathyQt4/key-file.cpp
@@ -152,7 +152,7 @@ bool KeyFile::Private::read()
}
else {
idx = data.indexOf('=');
- if (idx == 0) {
+ if (idx == -1) {
setError(KeyFile::FormatError,
QString("format error at line %1 - missing '='")
.arg(line));