]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwindows/messages.cpp
- Fix playlist deadlock between Timer and Playlist stuff
[vlc] / modules / gui / wxwindows / messages.cpp
index 28ac9d9cf253600655b74961f21fb427eea7be5a..f4de7beafc6d04d257d5cda1ce2b31008aef2ad0 100644 (file)
@@ -2,7 +2,7 @@
  * messages.cpp : wxWindows plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2004 VideoLAN
- * $Id: messages.cpp,v 1.20 2004/01/25 03:29:01 hartman Exp $
+ * $Id$
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *
@@ -95,9 +95,9 @@ Messages::Messages( intf_thread_t *_p_intf, wxWindow *p_parent ):
     clear_button->SetDefault();
 
     /* Create the Save Log button */
-     wxButton *save_log_button = new wxButton( messages_panel, wxID_SAVEAS,
-                                               wxU(_("Save As...")));
-     save_log_button->SetDefault();
+    wxButton *save_log_button = new wxButton( messages_panel, wxID_SAVEAS,
+                                              wxU(_("Save As...")));
+    save_log_button->SetDefault();
 
     /* Place everything in sizers */
     wxBoxSizer *buttons_sizer = new wxBoxSizer( wxHORIZONTAL );
@@ -143,6 +143,8 @@ void Messages::UpdateLog()
     int i_stop = *p_sub->pi_stop;
     vlc_mutex_unlock( p_sub->p_lock );
 
+    textctrl->SetInsertionPointEnd();
+
     if( p_sub->i_start != i_stop )
     {
         for( i_start = p_sub->i_start;