Fix segfault when canceling the open dialog. Patch by RĂ©mi Duraffort.
authorChristophe Mutricy <xtophe@videolan.org>
Tue, 27 Nov 2007 21:33:52 +0000 (21:33 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Tue, 27 Nov 2007 21:33:52 +0000 (21:33 +0000)
modules/gui/qt4/dialogs/open.cpp

index 301d5e2..3449a82 100644 (file)
@@ -211,7 +211,7 @@ void OpenDialog::toggleAdvancedPanel()
 /* If Cancel is pressed or escaped */
 void OpenDialog::cancel()
 {
-    for( int i = 0; i <= OPEN_TAB_MAX; i++ )
+    for( int i = 0; i < OPEN_TAB_MAX; i++ )
         dynamic_cast<OpenPanel*>(ui.Tab->widget( i ))->clear();
     toggleVisible();
     if( isModal() ) reject();