[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Thu May 26 15:36:18 CEST 2005
SVN commit 418381 by staikos:
fix rare crash in time code when Kst has no vectors
M +4 -1 kstdatasource.cpp
--- trunk/extragear/graphics/kst/kst/kstdatasource.cpp #418380:418381
@@ -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