Bug 118588 - autosellecting file switch problem
Summary: autosellecting file switch problem
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 131395 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-18 19:18 UTC by Becheru Petru-Ioan
Modified: 2006-07-26 14:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Becheru Petru-Ioan 2005-12-18 19:18:23 UTC
Version:           2.5.0 (using KDE 3.5.0, Debian Package 4:3.5.0-1 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.8-2-386

When you select all the text(Ctrl+A) in a kate part(konqueror), then you switch the file(in konq by entering another text in Location Bar) the new opened file is fullselected.
Comment 1 Anders Lund 2006-01-08 20:00:40 UTC
SVN commit 495724 by alund:

clear selection when closing a document.
BUG:118588


 M  +1 -0      katedocument.cpp  


--- branches/KDE/3.5/kdelibs/kate/part/katedocument.cpp #495723:495724
@@ -2733,6 +2733,7 @@
     // Explicitly call the internal version because we don't want this to look like
     // an external request (and thus have the view not QWidget::scroll()ed.
     view->setCursorPositionInternal(0, 0, 1, false);
+    view->clearSelection();
     view->updateView(true);
   }
 
Comment 2 Dominik Haumann 2006-04-29 19:58:15 UTC
SVN commit 535525 by dhaumann:

forward port SVN commit 495724 by alund: 

clear selection when closing a document. 
CCBUG:118588 


 M  +3 -0      katedocument.cpp  


--- trunk/KDE/kdelibs/kate/part/katedocument.cpp #535524:535525
@@ -2634,7 +2634,10 @@
 
   // update all our views
   foreach (KateView * view, m_views )
+  {
+    view->clearSelection(); // fix bug #118588
     view->clear();
+  }
 
   // uh, fileName changed
   emit documentUrlChanged (this);
Comment 3 Andreas Kling 2006-07-26 14:27:21 UTC
*** Bug 131395 has been marked as a duplicate of this bug. ***