[Kst] branches/work/kst/portto4/kst/src/widgets
Peter Kümmel
syntheticpp at gmx.net
Sun Mar 20 09:56:15 CET 2011
SVN commit 1225354 by kuemmel:
don't crash when no scalar is selected
M +3 -0 scalarlistselector.cpp
--- branches/work/kst/portto4/kst/src/widgets/scalarlistselector.cpp #1225353:1225354
@@ -30,8 +30,11 @@
QString ScalarListSelector::selectedScalar() const {
+ if (_scalars->currentItem()) {
return _scalars->currentItem()->text();
}
+ return QString();
+}
void ScalarListSelector::fillScalars(QStringList &scalars) {
More information about the Kst
mailing list