-rw-r--r-- | noncore/net/mail/selectsmtp.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/net/mail/selectsmtp.cpp b/noncore/net/mail/selectsmtp.cpp index e82c6ca..79b10ef 100644 --- a/noncore/net/mail/selectsmtp.cpp +++ b/noncore/net/mail/selectsmtp.cpp | |||
@@ -47,2 +47,7 @@ void selectsmtp::setSelectionlist(QList<SMTPaccount>*list) | |||
47 | accountSelection->clear(); | 47 | accountSelection->clear(); |
48 | if (!m_smtpList || m_smtpList->count()==0) { | ||
49 | accountSelection->setEnabled(false); | ||
50 | return; | ||
51 | } | ||
52 | accountSelection->setEnabled(true); | ||
48 | for (unsigned i = 0; m_smtpList!=0 && i < m_smtpList->count(); ++i) { | 53 | for (unsigned i = 0; m_smtpList!=0 && i < m_smtpList->count(); ++i) { |
@@ -50,2 +55,3 @@ void selectsmtp::setSelectionlist(QList<SMTPaccount>*list) | |||
50 | } | 55 | } |
56 | m_current_smtp = m_smtpList->at(0); | ||
51 | } | 57 | } |