]> git.sesse.net Git - vlc/commitdiff
Qt4 - Small correction on messages behaviour Ref #777
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 5 Apr 2007 21:26:58 +0000 (21:26 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 5 Apr 2007 21:26:58 +0000 (21:26 +0000)
modules/gui/qt4/dialogs/messages.cpp

index 6f0aaf41d01ac048acd6b6dcbb12f0e609e37727..d625a05bb10e8ddb81374bb0626343db73684c5c 100644 (file)
@@ -83,9 +83,10 @@ void MessagesDialog::updateLog()
     int i_stop = *p_sub->pi_stop;
     vlc_mutex_unlock( p_sub->p_lock );
 
-    messages->textCursor().movePosition( QTextCursor::End );
     if( p_sub->i_start != i_stop )
     {
+        messages->textCursor().movePosition( QTextCursor::End );
+
         for( i_start = p_sub->i_start;
                 i_start != i_stop;
                 i_start = (i_start+1) % VLC_MSG_QSIZE )