From: <mrj...@us...> - 2008-01-11 23:08:23
|
Revision: 2430 http://tora.svn.sourceforge.net/tora/?rev=2430&view=rev Author: mrjohnson0 Date: 2008-01-11 15:08:25 -0800 (Fri, 11 Jan 2008) Log Message: ----------- check index.isValid to prevent crash Modified Paths: -------------- branches/tora-1.4/tora/src/toresulttableview.cpp Modified: branches/tora-1.4/tora/src/toresulttableview.cpp =================================================================== --- branches/tora-1.4/tora/src/toresulttableview.cpp 2008-01-11 19:27:44 UTC (rev 2429) +++ branches/tora-1.4/tora/src/toresulttableview.cpp 2008-01-11 23:08:25 UTC (rev 2430) @@ -238,6 +238,9 @@ void toResultTableView::menuCallback(QAction *action) { QModelIndex index = currentIndex(); + if(!index.isValid()) + return; + QVariant data = model()->data(index, Qt::EditRole); if(action == displayAct) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |