From: <hep...@us...> - 2009-06-07 04:51:01
|
Revision: 885 http://qterm.svn.sourceforge.net/qterm/?rev=885&view=rev Author: hephooey Date: 2009-06-07 04:50:30 +0000 (Sun, 07 Jun 2009) Log Message: ----------- Connect to the first site if it exists 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:50:19 UTC (rev 884) +++ trunk/qterm-qt4/src/qtermglobal.cpp 2009-06-07 04:50:30 UTC (rev 885) @@ -145,10 +145,13 @@ bool Global::loadAddress(int n, Param& param) { QString strTmp, strSection; - if (n < 0) + strTmp = m_address->getItemValue("bbs list", "num").toString(); + if (n < 0 && strTmp.toInt() <= 0) strSection = "default"; - else + else { + n = n < 0 ? 0 : n; strSection.sprintf("bbs %d", n); + } // check if larger than existence strTmp = m_address->getItemValue("bbs list", "num").toString(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |