author | zautrix <zautrix> | 2005-01-15 09:31:52 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-15 09:31:52 (UTC) |
commit | f9f60d23806530a5bccae372e5eeebee6d528f20 (patch) (unidiff) | |
tree | caa83ca3e29a14a3423a6f4a7f22119148eaef04 /kabc/vcard | |
parent | a423c235d0cbc39292102042ed8f4a953e0e37f9 (diff) | |
download | kdepimpi-f9f60d23806530a5bccae372e5eeebee6d528f20.zip kdepimpi-f9f60d23806530a5bccae372e5eeebee6d528f20.tar.gz kdepimpi-f9f60d23806530a5bccae372e5eeebee6d528f20.tar.bz2 |
crash fix
-rw-r--r-- | kabc/vcard/VCardv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kabc/vcard/VCardv.cpp b/kabc/vcard/VCardv.cpp index 49bfe43..1166aac 100644 --- a/kabc/vcard/VCardv.cpp +++ b/kabc/vcard/VCardv.cpp | |||
@@ -116,17 +116,17 @@ VCard::_parse() | |||
116 | // Remove extra blank lines | 116 | // Remove extra blank lines |
117 | while (l.last().isEmpty()) | 117 | while (l.last().isEmpty()) |
118 | l.remove(l.last()); | 118 | l.remove(l.last()); |
119 | 119 | ||
120 | // Now we know this is the last line | 120 | // Now we know this is the last line |
121 | QString endLine = l.last(); | 121 | QString endLine = l.last(); |
122 | 122 | ||
123 | // Trash the first and last lines as we have seen them. | 123 | // Trash the first and last lines as we have seen them. |
124 | l.remove(l.first()); | 124 | l.remove(l.begin()); |
125 | l.remove(l.last()); | 125 | l.remove(l.last()); |
126 | 126 | ||
127 | /////////////////////////////////////////////////////////////// | 127 | /////////////////////////////////////////////////////////////// |
128 | // FIRST LINE | 128 | // FIRST LINE |
129 | 129 | ||
130 | int split = beginLine.find(':'); | 130 | int split = beginLine.find(':'); |
131 | 131 | ||
132 | if (split == -1) { // invalid, no BEGIN | 132 | if (split == -1) { // invalid, no BEGIN |