Commit 51ffe5b6 authored by Dirk Mueller's avatar Dirk Mueller
Browse files

shut up coverity (CID 1939)

svn path=/trunk/KDE/kdebase/konqueror/; revision=538898
parent 59fd7851
......@@ -151,6 +151,7 @@ void KonqListViewItem::setDisabled( bool disabled )
KonqBaseListViewItem::setDisabled( disabled );
int iconSize = m_pListViewWidget->iconSize();
iconSize = iconSize ? iconSize : KGlobal::iconLoader()->currentSize( K3Icon::Small ); // Default = small
Q_ASSERT(iconSize >= 0);
setPixmap( 0, m_fileitem->pixmap( iconSize, state() ) );
}
......@@ -163,6 +164,7 @@ void KonqListViewItem::setActive( bool active )
KonqBaseListViewItem::setActive( active );
int iconSize = m_pListViewWidget->iconSize();
iconSize = iconSize ? iconSize : KGlobal::iconLoader()->currentSize( K3Icon::Small ); // Default = small
Q_ASSERT(iconSize >= 0);
setPixmap( 0, m_fileitem->pixmap( iconSize, state() ) );
}
......
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