summaryrefslogtreecommitdiffstats
path: root/kcontrol/tdm
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/tdm')
-rw-r--r--kcontrol/tdm/tdm-users.cpp4
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 ) );
+ }
}