[Kst] branches/work/kst/1.1/kst/kst
George Staikos
staikos at kde.org
Thu May 26 15:37:28 CEST 2005
SVN commit 418382 by staikos:
backport crash fix for time support with empty Kst
M +4 -1 kstdatasource.cpp
--- branches/work/kst/1.1/kst/kst/kstdatasource.cpp #418381:418382
@@ -459,7 +459,7 @@
bool KstDataSource::supportsTime(const QString& filename, const QString& type) {
- if (filename == "stdin" || filename == "-") {
+ if (filename.isEmpty() || filename == "stdin" || filename == "-") {
return false;
}
@@ -469,6 +469,9 @@
}
QValueList<PluginSortContainer> bestPlugins = bestPluginsForSource(fn, type);
+ if (bestPlugins.isEmpty()) {
+ return false;
+ }
return (*bestPlugins.begin()).plugin->supportsTime(kConfigObject, fn);
}
More information about the Kst
mailing list