*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
/* Update the fileinfo windows */
if( p_fileinfo_dialog )
- p_fileinfo_dialog->UpdateFileInfo();
+ p_fileinfo_dialog->Update();
}
void DialogsProvider::OnPlaylist( wxCommandEvent& WXUNUSED(event) )
char *psz_utf8 = wxFromLocale( paths[i] );
if( event.GetInt() )
playlist_Add( p_playlist, psz_utf8, psz_utf8,
- PLAYLIST_APPEND | (i ? 0 : PLAYLIST_GO),
+ PLAYLIST_APPEND | (i ? 0 : PLAYLIST_GO) |
+ (i ? PLAYLIST_PREPARSE : 0 ),
PLAYLIST_END );
else
playlist_Add( p_playlist, psz_utf8, psz_utf8,
- PLAYLIST_APPEND, PLAYLIST_END );
+ PLAYLIST_APPEND | PLAYLIST_PREPARSE , PLAYLIST_END );
wxLocaleFree( psz_utf8 );
}
}
}
p_dialog = p_arg->p_dialog;
-
/** \bug We store the interface object for the dialog in the p_private
* field of the core dialog object. This is not safe if we change
* interface while a dialog is loaded */
break;
case INTERACT_UPDATE:
p_wxdialog = (InteractionDialog*)(p_dialog->p_private);
- p_wxdialog->Update();
+ if( p_wxdialog)
+ p_wxdialog->Update();
break;
case INTERACT_HIDE:
p_wxdialog = (InteractionDialog*)(p_dialog->p_private);
- p_wxdialog->Hide();
+ if( p_wxdialog )
+ p_wxdialog->Hide();
+ p_dialog->i_status = HIDDEN_DIALOG;
+ break;
+ case INTERACT_DESTROY:
+ p_wxdialog = (InteractionDialog*)(p_dialog->p_private);
+ /// \todo
+ p_dialog->i_status = DESTROYED_DIALOG;
break;
}
}