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) ...@@ -501,10 +501,10 @@ void KopeteChatWindow::initActions(void)
if ( animIcon ) if ( animIcon )
animIcon->setPaused(true); animIcon->setPaused(true);
QAction *animAction = new QAction( i18n("Toolbar Animation"), coll ); QWidgetAction *animAction = new QWidgetAction( coll );
coll->addAction( "toolbar_animation", animAction ); animAction->setText( i18n("Toolbar Animation") );
QWidgetAction *animWidgetAction = static_cast<QWidgetAction *>(animAction); animAction->setDefaultWidget( anim );
animWidgetAction->setDefaultWidget( anim ); coll->addAction( "toolbar_animation", animAction );
//toolBar()->insertWidget( 99, anim->width(), anim ); //toolBar()->insertWidget( 99, anim->width(), anim );
//toolBar()->alignItemRight( 99 ); //toolBar()->alignItemRight( 99 );
...@@ -549,7 +549,7 @@ void KopeteChatWindow::updateChatSendFileAction() ...@@ -549,7 +549,7 @@ void KopeteChatWindow::updateChatSendFileAction()
{ {
if ( !m_activeView ) if ( !m_activeView )
return; return;
chatSendFile->setEnabled( m_activeView->canSendFile() ); chatSendFile->setEnabled( m_activeView->canSendFile() );
} }
......
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