[vlmc-devel] commit: EffectStack: Update the displayed effect when removing an effect from the stack. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Sat Sep 4 22:22:43 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sat Sep 4 22:22:06 2010 +0200| [45ebbbd55ddcc7d82cc14ad85662f0c24b34a07d] | committer: Hugo Beauzée-Luyssen
EffectStack: Update the displayed effect when removing an effect from the stack.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=45ebbbd55ddcc7d82cc14ad85662f0c24b34a07d
---
src/Gui/effectsengine/EffectStack.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/Gui/effectsengine/EffectStack.cpp b/src/Gui/effectsengine/EffectStack.cpp
index 9a82fea..076a0bd 100644
--- a/src/Gui/effectsengine/EffectStack.cpp
+++ b/src/Gui/effectsengine/EffectStack.cpp
@@ -97,6 +97,10 @@ void
EffectStack::remove()
{
m_model->removeRow( m_ui->list->currentIndex().row() );
+ if ( m_ui->list->currentIndex().isValid() == true )
+ selectedChanged( m_ui->list->currentIndex() );
+ else
+ m_stackedLayout->setCurrentIndex( 0 );
}
void
More information about the Vlmc-devel
mailing list