Bug 307738 - "open with" action opens as many instances as you have different file formats open
Summary: "open with" action opens as many instances as you have different file formats...
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: documentswitcher (show other bugs)
Version: git master
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-02 17:31 UTC by Bernd Buschinski
Modified: 2012-10-04 23:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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