| Summary: | Filter and fit names not consistently reported in the UI | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Andrew Walker <arwalker> |
| Component: | general | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.x | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Andrew Walker
2007-04-03 19:59:48 UTC
The problem is caused by the two different types of plugin returning different names when propertyString() is called.
KstBasicPlugin returns the non-readable name ("name" in the xml file) while KstCPlugin returns the readable name ("Name" in the desktop file).
SVN commit 662655 by arwalker:
BUG:143802 Display the readable name in the data manager for fits and filters
M +10 -2 kstcplugin.cpp
--- branches/work/kst/1.5/kst/src/libkstmath/kstcplugin.cpp #662654:662655
@@ -528,10 +528,18 @@
QString KstCPlugin::propertyString() const {
+ QString str;
+
if (!isValid()) {
- return i18n("Invalid plugin.");
+ str = i18n("Invalid plugin.");
+ } else {
+ str = plugin()->data()._readableName;
+ if (str.isEmpty()) {
+ str = plugin()->data()._name;
+ }
}
- return plugin()->data()._name;
+
+ return str;
}
|