job->addMetaData( "AllowCompressedPage", "false" );
}
- qApp->enter_loop();
+ enter_loop();
if ( m_threadData.length() ) {
QCp932Codec codec;
return retstr;
}
+// from netaccess.cpp
+void qt_enter_modal( QWidget* widget );
+void qt_leave_modal( QWidget* widget );
+
+void Access::enter_loop()
+{
+ QWidget dummy( 0, 0, WType_Dialog | WShowModal );
+ dummy.setFocusPolicy( QWidget::NoFocus );
+ qt_enter_modal( &dummy );
+ qApp->enter_loop();
+ qt_leave_modal( &dummy );
+}
+
void Access::slotReceiveThreadData( KIO::Job*, const QByteArray& data )
{
QCString cstr( data.data(), data.size() + 1 );