Make the time before showing the splash when opening a mailfolder on imap configurable in the ini.

BUG: 116773 

svn path=/branches/KDE/3.5/kdepim/; revision=488792
wilder-work
Tom Albers 21 years ago
parent c022a2942d
commit 441e13c74d
  1. 3
      kmail.kcfg
  2. 4
      kmmainwidget.cpp

@ -109,6 +109,9 @@
<default>0</default>
<min>0</min>
</entry>
<entry name="FolderLoadingTimeout" type="Int" hidden="true">
<default>1000</default>
</entry>
</group>

@ -1787,10 +1787,10 @@ void KMMainWidget::folderSelected( KMFolder* aFolder, bool forceJumpToUnread )
mForceJumpToUnread = forceJumpToUnread;
// Set a timer to show a splash screen if fetching folder contents
// takes more than a second
// takes more than the amount of seconds configured in the kmailrc (default 1000 msec)
mShowBusySplashTimer = new QTimer( this );
connect( mShowBusySplashTimer, SIGNAL( timeout() ), this, SLOT( slotShowBusySplash() ) );
mShowBusySplashTimer->start( 1000, true );
mShowBusySplashTimer->start( GlobalSettings::self()->folderLoadingTimeout(), true );
return;
} else {
// the folder is complete now - so go ahead

Loading…
Cancel
Save