From 438403295657bdcab9ee9e526c6a08894e876f63 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 11 Sep 2004 17:14:18 +0000 Subject: small fix --- (limited to 'kmicromail/composemail.cpp') diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 9efa932..9b799b3 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp @@ -95,15 +95,6 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m smtpAccounts.append( smtp ); } } - if ( smtpAccounts.count() > 0 ) { - fillValues( smtpAccountBox->currentItem() ); - } else { - QMessageBox::information( 0, tr( "Problem" ), - tr( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ), - tr( "Ok" ) ); - return; - } - connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); connect( toButton, SIGNAL( clicked() ), SLOT( pickAddressTo() ) ); connect( ccButton, SIGNAL( clicked() ), SLOT( pickAddressCC() ) ); connect( bccButton, SIGNAL( clicked() ), SLOT( pickAddressBCC() ) ); @@ -113,6 +104,15 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); mMail = 0; warnAttach = true; + if ( smtpAccounts.count() > 0 ) { + fillValues( smtpAccountBox->currentItem() ); + } else { + QMessageBox::information( 0, tr( "Problem" ), + tr( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ), + tr( "Ok" ) ); + return; + } + connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); } -- cgit v0.9.0.2