]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for bug PAL9354 (Can't edit a python line).
authormzn <mzn@opencascade.com>
Wed, 7 Sep 2005 10:16:17 +0000 (10:16 +0000)
committermzn <mzn@opencascade.com>
Wed, 7 Sep 2005 10:16:17 +0000 (10:16 +0000)
src/SALOMEGUI/QAD_PyEditor.cxx

index 10c70d5fbb38df60d5ecba2ce550d98d2c8d45ca..a681b8eec02edb207d0721d200badc60b255285e 100644 (file)
@@ -458,7 +458,7 @@ void QAD_PyEditor::keyPressEvent( QKeyEvent* e )
        if ( previousCommand.compare( BEGIN_HISTORY_PY ) != 0 ) {
          removeParagraph( endLine );
          histLine.append( previousCommand );
-         insertParagraph( histLine, -1 );
+         append( histLine );
        }
        moveCursor( QTextEdit::MoveEnd, false );
       }
@@ -487,14 +487,14 @@ void QAD_PyEditor::keyPressEvent( QKeyEvent* e )
        if ( nextCommand.compare( TOP_HISTORY_PY ) != 0 ) {
          removeParagraph( endLine );
          histLine.append( nextCommand );
-         insertParagraph( histLine, -1 );
+         append( histLine );
        }
        else {
          if (_isInHistory) {
            _isInHistory = false;
            removeParagraph( endLine );
            histLine.append( _currentCommand );
-           insertParagraph( histLine, -1 );
+           append( histLine );
          }
        }
        moveCursor( QTextEdit::MoveEnd, false );