Fix a crash when clicking ok in the configure decoration dialog.
svn path=/trunk/KDE/kdebase/workspace/; revision=1077309
This commit is contained in:
parent
923d1a3778
commit
ba25fe8ce3
1 changed files with 4 additions and 2 deletions
|
@ -131,8 +131,10 @@ void DecorationDelegate::slotConfigure()
|
|||
new KWinDecorationConfigDialog( name, borderSizes, size, m_itemView );
|
||||
if( configDialog->exec() == KDialog::Accepted )
|
||||
{
|
||||
static_cast< DecorationModel* >( itemView()->model() )->setBorderSize( index, configDialog->borderSize() );
|
||||
static_cast< DecorationModel* >( itemView()->model() )->regeneratePreview( focusedIndex() );
|
||||
DecorationModel* model = static_cast< DecorationModel* >(
|
||||
static_cast< QSortFilterProxyModel* >( itemView()->model() )->sourceModel() );
|
||||
model->setBorderSize( index, configDialog->borderSize() );
|
||||
model->regeneratePreview( focusedIndex() );
|
||||
}
|
||||
|
||||
delete configDialog;
|
||||
|
|
Loading…
Reference in a new issue