Bug 358493 - Create From Template: preview doesn't get cleared between templates
Summary: Create From Template: preview doesn't get cleared between templates
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.90.91
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 5.0.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-24 18:28 UTC by David Faure
Modified: 2016-01-25 09:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Faure 2016-01-24 18:28:52 UTC
The "Create From Template" dialog has a bug in the Preview textedits at the bottom: the sample texts (from the different templates I'm clicking on) keep being appended one after the other, rather than replacing.

Reproducible: Always

Steps to Reproduce:
1. Choose a template
2. Choose another template


Actual Results:  
The previews (for .cpp and .h) contain the concatenation of both.
Comment 1 Milian Wolff 2016-01-24 20:16:47 UTC
Git commit fdcefb278d59b1816f6158f92a7581480fa4402d by Milian Wolff.
Committed on 24/01/2016 at 20:13.
Pushed by mwolff into branch '5.0'.

Render file template previews into correct temporary folder.

Yet another KUrl porting bug... For QUrl::resolved to work properly
it is crucial that the path of the QUrl ends with a /, so add that
manually.

M  +1    -1    plugins/filetemplates/templateselectionpage.cpp

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