From 51c22b66af963e58e8bc07517484521a4cfb5be5 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Wed, 11 Jan 2006 18:34:27 +0000 Subject: [PATCH] forward port: Fix crash during a "insert file" in the composer. Patch provided by Goffredo Baroncelli and approved by Don. svn path=/trunk/KDE/kdepim/; revision=497018 --- kmcomposewin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmcomposewin.cpp b/kmcomposewin.cpp index d6067c97d..a8b42c0a9 100644 --- a/kmcomposewin.cpp +++ b/kmcomposewin.cpp @@ -2666,7 +2666,7 @@ void KMComposeWin::slotInsertFile() while ((uint)urls.count() > mMaxRecentFiles) urls.erase( urls.fromLast() ); while ((uint)encodings.count() > mMaxRecentFiles) - urls.erase( encodings.fromLast() ); + encodings.erase( encodings.fromLast() ); // sanity check if (urls.count() != encodings.count()) { urls.clear();