- this makes konqueror a bit more responsive :-)

opening an url now immediately makes the wheel rotate ;-) and enables
  the stop button. It was quite ugly to see the wheel fixed and the stop
  button disabled while waiting several seconds for KRun to determine the
  mimetype of sth. like http://foo.com/

svn path=/trunk/kdebase/konqueror/; revision=34316
This commit is contained in:
Simon Hausmann 1999-11-18 20:34:02 +00:00
parent 03c7add7d3
commit e9181cc4ed
2 changed files with 13 additions and 3 deletions

View file

@ -348,9 +348,15 @@ void KonqChildView::run( const QString & url )
void KonqChildView::stop()
{
m_pView->stop();
if ( m_bLoading )
{
m_pView->stop();
m_bLoading = false;
}
else if ( m_pRun )
delete (KonqRun *)m_pRun; // should set m_pRun to 0L
if ( m_pRun ) debug(" m_pRun is not NULL "); else debug(" m_pRun is NULL ");
// if ( m_pRun ) debug(" m_pRun is not NULL "); else debug(" m_pRun is NULL ");
//if ( m_pRun ) delete (KonqRun *)m_pRun; // should set m_pRun to 0L
}

View file

@ -260,6 +260,10 @@ void KonqMainView::openURL( KonqChildView *_view, const QString &_url, bool relo
m_paURLCombo->QSelectAction::changeItem( 0, url );
(void) new KonqRun( this, 0L, url, 0, false, true );
}
if ( view == m_currentView )
startAnimation();
}
void KonqMainView::openURL( const QString &url, bool reload, int xOffset,
@ -386,7 +390,7 @@ void KonqMainView::slotShowHTML()
void KonqMainView::slotStop()
{
if ( m_currentView && m_currentView->isLoading() )
if ( m_currentView )
{
m_currentView->stop();
stopAnimation();