[Telepathy-commits] [telepathy-qt4/master] Fixed bug while searching for keys on on key file.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Mon Jan 5 07:59:22 PST 2009
---
TelepathyQt4/key-file.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/TelepathyQt4/key-file.cpp b/TelepathyQt4/key-file.cpp
index 44768b7..6c8538f 100644
--- a/TelepathyQt4/key-file.cpp
+++ b/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));
--
1.5.6.5
More information about the Telepathy-commits
mailing list