Thread::Thread( const QString& boardName, const KURL& datURL, const QString& threadName, int resNum )
: m_datURL( datURL ), m_threadName( threadName ), m_resNum( resNum )
{
- m_boardName = boardName;
+ m_boardName = boardName;
+ Kita::Board::setName( boardURL(), boardName );
}
Thread::Thread( const KURL& datURL, const QString& threadName, int resNum )
const QString& Thread::boardName() const
{
- return m_boardName;
+ Board* board = Board::getByURL( boardURL() );
+ if( board->name().isNull() ) {
+ // FIXME: ¤³¤³¤Ë¤Ï¤³¤Ê¤¤¤Ï¤º
+ return m_boardName;
+ } else {
+ return board->name();
+ }
}
const QString Thread::boardURL() const