diff options
Diffstat (limited to 'kcontrol/tdm/tdm-users.cpp')
-rw-r--r-- | kcontrol/tdm/tdm-users.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kcontrol/tdm/tdm-users.cpp b/kcontrol/tdm/tdm-users.cpp index d39d4048e..fe2f31c65 100644 --- a/kcontrol/tdm/tdm-users.cpp +++ b/kcontrol/tdm/tdm-users.cpp @@ -263,7 +263,9 @@ void TDMUsersWidget::slotUserSelected() p.load( m_userPixDir + ".default.face.icon" ); rstuserbutton->setEnabled( false ); } - userbutton->setPixmap( p.smoothScale( 48, 48, TQ_ScaleMin ) ); + if (!p.isNull()) { + userbutton->setPixmap( p.smoothScale( 48, 48, TQ_ScaleMin ) ); + } } |