Bug 307738

Summary: "open with" action opens as many instances as you have different file formats open
Product: [Developer tools] kdevplatform Reporter: Bernd Buschinski <b.buschinski>
Component: documentswitcherAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: 1.3.0   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Bernd Buschinski 2012-10-02 17:31:44 UTC
the toolview documents "open with" action 
is executed as often as it has different open file types

Reproducible: Always

Steps to Reproduce:
1. open kdevelop
2. open any project
3. open some.cpp (in kdevelop)
3.1 the toolview documents, rightclick some.cpp -> open with -> kwrite
3.2 it opens 1 kwrite with some.cpp
4. open some.h (in kdevelop)
5. the toolview documents, rightclick some.cpp -> open with -> kwrite
Actual Results:  
kwrite is opened 2 times now with some.cpp

if you now open some.txt,
and again in the toolview documents -> open with -> kwrite
you now get 3 kwrites

Expected Results:  
kwrite should be opened just once
Comment 1 Milian Wolff 2012-10-04 23:30:07 UTC
Git commit cfb780d22254188855d88c6799fb04fd32700d01 by Milian Wolff.
Committed on 05/10/2012 at 01:28.
Pushed by mwolff into branch '1.4'.

Only handle document model once, not once for every top row.

M  +8    -11   plugins/documentview/kdevdocumentview.cpp

http://commits.kde.org/kdevplatform/cfb780d22254188855d88c6799fb04fd32700d01