Backport r850028 by tmcguire from trunk to the 4.1 branch:
Backport r850028 by tmcguire from trunk to the 4.1 branch:

Don't attempt do execute an IMAP job when there is no connection.
This fixes a crash when the user tries to copy a mail and the
password dialog is currently shown (because the slave is 0).



svn path=/branches/KDE/4.1/kdepim/; revision=851221

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi