On Wednesday 12 January 2005 09:14, Frerich Raabe wrote: > On Monday 10 January 2005 17:29, Spiros Georgaras wrote: > > [I'm not quoting the relevant code excerpt here since that looks awful in > KMail.] > > All your checks like 'fullPath.right(4).lower()==".mht"' could nicely get > replaced with 'fullPath.endsWith( ".mht", false );' (the second parameter > meaning 'no case-sensitive comparison'). Or using KMimeType instead of hardcoded extensions checks :) -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).