From: <ibr...@us...> - 2011-11-10 22:28:25
|
Revision: 4136 http://tora.svn.sourceforge.net/tora/?rev=4136&view=rev Author: ibre5041 Date: 2011-11-10 22:28:19 +0000 (Thu, 10 Nov 2011) Log Message: ----------- segfault fix Modified Paths: -------------- branches/tora-trotl/src/toglobalsetting.cpp Modified: branches/tora-trotl/src/toglobalsetting.cpp =================================================================== --- branches/tora-trotl/src/toglobalsetting.cpp 2011-11-10 22:23:58 UTC (rev 4135) +++ branches/tora-trotl/src/toglobalsetting.cpp 2011-11-10 22:28:19 UTC (rev 4136) @@ -450,7 +450,8 @@ if (!defName.isEmpty()) { toTool *def = ToolsRegistrySing::Instance().value(toConfigurationSingle::Instance().defaultTool()); - currIx = DefaultTool->findText(def->name()); + if (def) + currIx = DefaultTool->findText(def->name()); } DefaultTool->setCurrentIndex( (currIx == -1) ? 0 : currIx ); changeEnable(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |