added check for when no var has been selected
@@ -1689,10 +1689,20 @@ QvisSelectionsWindow::deleteSelection()
void
QvisSelectionsWindow::updateQuery()
{
+ if( selectionProps.GetHistogramType() ==
+ SelectionProperties::HistogramVariable &&
+ selectionProps.GetHistogramVariable().empty() )
+ {
+ Warning(tr("No histogram variable has been selected for the display axis."));
+ }
// Force an update of the selection but do not update the plots that use it.
+ else
+ {
bool updatePlots = false;
+
Apply(true, updatePlots, DONT_ALLOW_CACHING);
}
+}
// ****************************************************************************
// Method: QvisSelectionsWindow::updateSelection
@@ -1712,9 +1722,18 @@ QvisSelectionsWindow::updateQuery()
void
QvisSelectionsWindow::updateSelection()
{
+ if( selectionProps.GetHistogramType() ==
+ SelectionProperties::HistogramVariable &&
+ selectionProps.GetHistogramVariable().empty() )
+ {
+ Warning(tr("No histogram variable has been selected for the display axis."));
+ }
// Force an update of the selection and update the plots that use it.
+ else
+ {
Apply(true, DEFAULT_UPDATE_PLOTS, ALLOW_CACHING);
}
+}
// ****************************************************************************
// Method: QvisSelectionsWindow::loadSelection
