Commit 89f624b8 authored by cyrush's avatar cyrush
Browse files

merge from 2.0RC: fix for expr window crashes

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@10845 18c085ea-50e0-402c-830e-de6fd14e8384
parent dd46cf95
...@@ -1332,6 +1332,9 @@ QvisExpressionsWindow::notHiddenChanged() ...@@ -1332,6 +1332,9 @@ QvisExpressionsWindow::notHiddenChanged()
// Fixed crash when no user expressions are defined and the user clicks // Fixed crash when no user expressions are defined and the user clicks
// show database expressions. // show database expressions.
// //
// Cyrus Harrison, Wed Apr 14 13:44:48 PDT 2010
// Fixed crash related to reselection.
//
// **************************************************************************** // ****************************************************************************
void void
QvisExpressionsWindow::displayAllVarsChanged() QvisExpressionsWindow::displayAllVarsChanged()
...@@ -1350,7 +1353,6 @@ QvisExpressionsWindow::displayAllVarsChanged() ...@@ -1350,7 +1353,6 @@ QvisExpressionsWindow::displayAllVarsChanged()
if (reselect) if (reselect)
{ {
QString item = exprListBox->currentItem()->text();
for (int i=0; i<exprListBox->count(); i++) for (int i=0; i<exprListBox->count(); i++)
{ {
if (exprListBox->item(i)->text() == item) if (exprListBox->item(i)->text() == item)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment