Commit 3ff512ed authored by Frank Osterfeld's avatar Frank Osterfeld
Browse files

assert slightly more elegantly

svn path=/trunk/KDE/kdebase/libkonq/; revision=678197
parent 267aa70b
......@@ -68,7 +68,9 @@ QString KonqPixmapProvider::iconNameFor( const KUrl& url )
if ( url.url().isEmpty() ) {
// Use the folder icon for the empty URL
icon = KMimeType::mimeType( "inode/directory" )->iconName();
const KMimeType::Ptr directoryType = KMimeType::mimeType( "inode/directory" );
Q_ASSERT( !directoryType.isNull() );
icon = directoryType->iconName();
Q_ASSERT( !icon.isEmpty() );
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment