<p>There once was a request to just load vectors....</p>
<div class="gmail_quote">On Jan 28, 2012 6:23 PM, "Peter Kümmel" <<a href="mailto:syntheticpp@gmx.net">syntheticpp@gmx.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
SVN commit 1276331 by kuemmel:<br>
<br>
Don't crash when neither _xAxisGroup nor _FFTOption is checked.<br>
Enforce selection, by disabling 'Next' button.<br>
<br>
(Or should it be possible to only load vectors without plotting?)<br>
<br>
M +8 -1 datawizard.cpp<br>
<br>
<br>
--- branches/work/kst/portto4/kst/src/libkstapp/datawizard.cpp #1276330:1276331<br>
@@ -572,6 +572,9 @@<br>
<br>
_FFTOptions->GroupBoxFFTOptions->setChecked(_dialogDefaults->value("wizard/doPSD",false).toBool());<br>
_xAxisGroup->setChecked(_dialogDefaults->value("wizard/doXY",true).toBool());<br>
+<br>
+ connect(_xAxisGroup, SIGNAL(clicked()), this, SLOT(optionsUpdated()));<br>
+ connect(_FFTOptions->GroupBoxFFTOptions, SIGNAL(clicked()), this, SLOT(optionsUpdated()));<br>
}<br>
<br>
<br>
@@ -655,6 +658,10 @@<br>
<br>
<br>
bool DataWizardPageDataPresentation::validOptions() {<br>
+ if (!_FFTOptions->GroupBoxFFTOptions->isChecked() && !_xAxisGroup->isChecked()) {<br>
+ return false;<br>
+ }<br>
+<br>
if (!_xAxisGroup->isEnabled()) {<br>
return true;<br>
}<br>
@@ -1161,7 +1168,7 @@<br>
plot->update();<br>
plot->view()->appendToLayout(layout_type, plot, num_columns);<br>
}<br>
- if (layout_type == CurvePlacement::Custom) {<br>
+ if (!plotList.isEmpty() && layout_type == CurvePlacement::Custom) {<br>
plotList.at(0)->createCustomLayout(num_columns);<br>
}<br>
<br>
_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
</blockquote></div>