QValueList<QString>::const_iterator it;
for ( it = threadList.begin(); it != threadList.end(); ++it ) {
- const Kita::Thread* thread = Kita::Thread::getByURL( *it );
- QString datURL = thread->datURL();
+ QString datURL = ( *it );
+ const Kita::Thread* thread = Kita::Thread::getByURL( datURL );
QDateTime since;
since.setTime_t( Kita::datToSince( datURL ) );
QValueList<QString>::const_iterator it;
for ( it = threadList.begin(); it != threadList.end(); ++it ) {
- const Kita::Thread* thread = Kita::Thread::getByURL( *it );
+ QString datURL = ( *it );
- if ( thread->datURL() == item->text( Col_DatURL ) ) {
- emit openURLRequestExt( thread->datURL(), KParts::URLArgs(), "kita_open_2chthread", 0 );
+ if ( datURL == item->text( Col_DatURL ) ) {
+ emit openURLRequestExt( datURL, KParts::URLArgs(), "kita_open_2chthread", 0 );
}
}
}
const QValueList<QString> threadList = FavoriteThreads::getInstance() -> threadList();
QValueList<QString>::const_iterator it;
for ( it = threadList.begin(); it != threadList.end(); ++it ) {
- const Kita::Thread* thread = Kita::Thread::getByURL( *it );
- QString boardURL = Kita::datToBoard( thread->datURL() );
+ QString datURL = ( *it );
+ QString boardURL = Kita::datToBoard( datURL );
if ( boardList.contains( boardURL ) == 0 ) {
boardList.append( boardURL );
}
KURL datURL = item->text( Col_DatURL );
- Kita::Thread* thread = Kita::Thread::getByURL( datURL.url() );
-
if ( KitaConfig::alwaysUseTab() ) {
- emit openURLRequestExt( thread->datURL(), KParts::URLArgs(), "kita_open_2chthread", 1 );
+ emit openURLRequestExt( datURL.prettyURL(), KParts::URLArgs(), "kita_open_2chthread", 1 );
} else {
- emit openURLRequestExt( thread->datURL(), KParts::URLArgs(), "kita_open_2chthread", 0 );
+ emit openURLRequestExt( datURL.prettyURL(), KParts::URLArgs(), "kita_open_2chthread", 0 );
}
}
/*
switch ( button ) {
case MidButton:
- emit openURLRequestExt( thread->datURL(), KParts::URLArgs(), "kita_open_2chthread", 1 );
+ emit openURLRequestExt( datURL.prettyURL(), KParts::URLArgs(), "kita_open_2chthread", 1 );
break;
case LeftButton:
if ( KitaConfig::alwaysUseTab() ) {
- emit openURLRequestExt( thread->datURL(), KParts::URLArgs(), "kita_open_2chthread", 1 );
+ emit openURLRequestExt( datURL.prettyURL(), KParts::URLArgs(), "kita_open_2chthread", 1 );
} else {
- emit openURLRequestExt( thread->datURL(), KParts::URLArgs(), "kita_open_2chthread", 0 );
+ emit openURLRequestExt( datURL.prettyURL(), KParts::URLArgs(), "kita_open_2chthread", 0 );
}
break;
}