[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kate/part
From:       Christoph Cullmann <crossfire () babylon2k ! de>
Date:       2004-10-23 22:02:47
Message-ID: 20041023220247.5EECE16C3D () office ! kde ! org
[Download RAW message or body]

CVS commit by cullmann: 

one transaction for drag and drop of text
BUG: 64459


  M +7 -0      kateviewinternal.cpp   1.326


--- kdelibs/kate/part/kateviewinternal.cpp  #1.325:1.326
@@ -2987,4 +2987,7 @@ void KateViewInternal::dropEvent( QDropE
     }
 
+    // use one transaction
+    m_doc->editStart ();
+
     // on move: remove selected text; on copy: duplicate text
     if ( event->action() != QDropEvent::Copy )
@@ -2990,5 +2993,9 @@ void KateViewInternal::dropEvent( QDropE
     if ( event->action() != QDropEvent::Copy )
       m_doc->removeSelectedText();
+
     m_doc->insertText( cursor.line(), cursor.col(), text );
+
+    m_doc->editEnd ();
+
     placeCursor( event->pos() );
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic