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
wilder-work
Allen Winter 20 years ago
parent 474be59dae
commit 51c22b66af
  1. 2
      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();

Loading…
Cancel
Save