Do not attempt to set null user images in tdm tdecontrol module

This resolves Bug 1899
pull/2/head
Timothy Pearson 10 years ago
parent 5bb5839ff7
commit f8903b3564

@ -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 ) );
}
}

Loading…
Cancel
Save