mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
- 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:
parent
03c7add7d3
commit
e9181cc4ed
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue