summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-09-11 17:14:18 (UTC)
committer zautrix <zautrix>2004-09-11 17:14:18 (UTC)
commit438403295657bdcab9ee9e526c6a08894e876f63 (patch) (unidiff)
tree4e05a8527364e3b87de4059dc936f1687ddc08e8
parent06be094df4e34cc41db113d8c0e78eccde5365b5 (diff)
downloadkdepimpi-438403295657bdcab9ee9e526c6a08894e876f63.zip
kdepimpi-438403295657bdcab9ee9e526c6a08894e876f63.tar.gz
kdepimpi-438403295657bdcab9ee9e526c6a08894e876f63.tar.bz2
small fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/composemail.cpp18
1 files changed, 9 insertions, 9 deletions
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
95 smtpAccounts.append( smtp ); 95 smtpAccounts.append( smtp );
96 } 96 }
97 } 97 }
98 if ( smtpAccounts.count() > 0 ) {
99 fillValues( smtpAccountBox->currentItem() );
100 } else {
101 QMessageBox::information( 0, tr( "Problem" ),
102 tr( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ),
103 tr( "Ok" ) );
104 return;
105 }
106 connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) );
107 connect( toButton, SIGNAL( clicked() ), SLOT( pickAddressTo() ) ); 98 connect( toButton, SIGNAL( clicked() ), SLOT( pickAddressTo() ) );
108 connect( ccButton, SIGNAL( clicked() ), SLOT( pickAddressCC() ) ); 99 connect( ccButton, SIGNAL( clicked() ), SLOT( pickAddressCC() ) );
109 connect( bccButton, SIGNAL( clicked() ), SLOT( pickAddressBCC() ) ); 100 connect( bccButton, SIGNAL( clicked() ), SLOT( pickAddressBCC() ) );
@@ -113,6 +104,15 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m
113 connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); 104 connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) );
114 mMail = 0; 105 mMail = 0;
115 warnAttach = true; 106 warnAttach = true;
107 if ( smtpAccounts.count() > 0 ) {
108 fillValues( smtpAccountBox->currentItem() );
109 } else {
110 QMessageBox::information( 0, tr( "Problem" ),
111 tr( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ),
112 tr( "Ok" ) );
113 return;
114 }
115 connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) );
116 116
117} 117}
118 118