Commit d9f7b075 authored by Alexey Chernov's avatar Alexey Chernov Committed by Pali Rohár

Fix crash on opening chat window

parent 0c6c0e1c
......@@ -501,10 +501,10 @@ void KopeteChatWindow::initActions(void)
if ( animIcon )
animIcon->setPaused(true);
QAction *animAction = new QAction( i18n("Toolbar Animation"), coll );
QWidgetAction *animAction = new QWidgetAction( coll );
animAction->setText( i18n("Toolbar Animation") );
animAction->setDefaultWidget( anim );
coll->addAction( "toolbar_animation", animAction );
QWidgetAction *animWidgetAction = static_cast<QWidgetAction *>(animAction);
animWidgetAction->setDefaultWidget( anim );
//toolBar()->insertWidget( 99, anim->width(), anim );
//toolBar()->alignItemRight( 99 );
......
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