OSDN Git Service

fix: m_thread is null
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Tue, 13 Jul 2004 14:26:40 +0000 (14:26 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Tue, 13 Jul 2004 14:26:40 +0000 (14:26 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1238 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/libkita/datinfo.cpp

index c5c5531..a0cd21e 100644 (file)
@@ -200,6 +200,9 @@ void DatInfo::copyRawDataToBuffer(const QString& rawData)
     }
 
     /* update thread info */
+    if ( !m_thread && m_readNum ) {
+        m_thread = Kita::Thread::getByURL( m_datURL.prettyURL() );
+    }
     if( m_thread ){
        if( m_thread->resNum() < m_readNum ) m_thread->setResNum( m_readNum );
        KitaThreadInfo::setReadNum( m_datURL.prettyURL(), m_readNum );