From: <hep...@us...> - 2009-06-07 04:49:49
|
Revision: 878 http://qterm.svn.sourceforge.net/qterm/?rev=878&view=rev Author: hephooey Date: 2009-06-07 04:49:41 +0000 (Sun, 07 Jun 2009) Log Message: ----------- Do not try to load the system script if there is none Modified Paths: -------------- trunk/qterm-qt4/src/qtermglobal.cpp Modified: trunk/qterm-qt4/src/qtermglobal.cpp =================================================================== --- trunk/qterm-qt4/src/qtermglobal.cpp 2009-06-07 04:49:35 UTC (rev 877) +++ trunk/qterm-qt4/src/qtermglobal.cpp 2009-06-07 04:49:41 UTC (rev 878) @@ -236,6 +236,9 @@ strTmp = m_address->getItemValue(strSection, "loadscript").toString(); param.m_bLoadScript = (strTmp != "0"); param.m_strScriptFile = m_address->getItemValue(strSection, "scriptfile").toString(); + if (param.m_strScriptFile.isEmpty()) { + param.m_bLoadScript = false; + } strTmp = m_address->getItemValue(strSection, "menutype").toString(); param.m_nMenuType = strTmp.toInt(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |