Commit a7f36068 authored by Christophe Mutricy's avatar Christophe Mutricy

Fix segfault when canceling the open dialog. Patch by Rémi Duraffort.

parent fb033327
...@@ -211,7 +211,7 @@ void OpenDialog::toggleAdvancedPanel() ...@@ -211,7 +211,7 @@ void OpenDialog::toggleAdvancedPanel()
/* If Cancel is pressed or escaped */ /* If Cancel is pressed or escaped */
void OpenDialog::cancel() 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(); dynamic_cast<OpenPanel*>(ui.Tab->widget( i ))->clear();
toggleVisible(); toggleVisible();
if( isModal() ) reject(); if( isModal() ) reject();
......
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