m_access = new Kita::ThreadAccess( thread );
connect( m_access, SIGNAL( redirection( const QString& ) ), SIGNAL( setLocationBarURL( const QString& ) ) );
QString result = m_access->get();
- m_serverTime = m_access->serverTime();
update( result );
}
void KitaThreadView::slotWriteButtonClicked()
{
// QSjisCodec cp932Codec;
+ if( ! m_access ) {
+ kdError() << __func__ << ": m_access is null" << endl;
+ return;
+ }
KURL bbscgiURL = KURL( m_thread.boardURL(), "../test/bbs.cgi");
bbscgiURL.setProtocol( "http" );
info.host = bbscgiURL.host();
info.bbs = m_thread.boardID();
info.key = m_thread.datID();
- info.time = QString("%1").arg(m_serverTime);
+ info.time = QString("%1").arg( m_access->serverTime() );
KitaWriteDialog* dialog = openDialog( info );
dialog->show(); // work asynchronus.