summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/editaccounts.cpp29
-rw-r--r--noncore/net/mail/opiemail.cpp9
-rw-r--r--noncore/net/mail/opiemail.h5
3 files changed, 25 insertions, 18 deletions
diff --git a/noncore/net/mail/editaccounts.cpp b/noncore/net/mail/editaccounts.cpp
index 1c80adb..1246037 100644
--- a/noncore/net/mail/editaccounts.cpp
+++ b/noncore/net/mail/editaccounts.cpp
@@ -18,3 +18,3 @@ EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool
18 settings = s; 18 settings = s;
19 19
20 mailList->addColumn( tr( "Account" ) ); 20 mailList->addColumn( tr( "Account" ) );
@@ -23,3 +23,3 @@ EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool
23 newsList->addColumn( tr( "Account" ) ); 23 newsList->addColumn( tr( "Account" ) );
24 24
25 connect( newMail, SIGNAL( clicked() ), SLOT( slotNewMail() ) ); 25 connect( newMail, SIGNAL( clicked() ), SLOT( slotNewMail() ) );
@@ -72,3 +72,3 @@ void EditAccounts::slotNewAccount( const QString &type )
72 slotFillLists(); 72 slotFillLists();
73 } else { 73 } else {
74 account->remove(); 74 account->remove();
@@ -96,2 +96,3 @@ void EditAccounts::slotNewAccount( const QString &type )
96 slotFillLists(); 96 slotFillLists();
97
97 } else { 98 } else {
@@ -149,3 +150,3 @@ void EditAccounts::slotDeleteAccount( Account *account )
149{ 150{
150 if ( QMessageBox::information( this, tr( "Question" ), 151 if ( QMessageBox::information( this, tr( "Question" ),
151 tr( "<p>Do you really want to delete the selected Account?</p>" ), 152 tr( "<p>Do you really want to delete the selected Account?</p>" ),
@@ -161,3 +162,3 @@ void EditAccounts::slotEditMail()
161 if ( !mailList->currentItem() ) { 162 if ( !mailList->currentItem() ) {
162 QMessageBox::information( this, tr( "Error" ), 163 QMessageBox::information( this, tr( "Error" ),
163 tr( "<p>Please select an account.</p>" ), 164 tr( "<p>Please select an account.</p>" ),
@@ -174,3 +175,3 @@ void EditAccounts::slotDeleteMail()
174 if ( !mailList->currentItem() ) { 175 if ( !mailList->currentItem() ) {
175 QMessageBox::information( this, tr( "Error" ), 176 QMessageBox::information( this, tr( "Error" ),
176 tr( "<p>Please select an account.</p>" ), 177 tr( "<p>Please select an account.</p>" ),
@@ -179,3 +180,3 @@ void EditAccounts::slotDeleteMail()
179 } 180 }
180 181
181 Account *a = ((AccountListItem *) mailList->currentItem())->getAccount(); 182 Account *a = ((AccountListItem *) mailList->currentItem())->getAccount();
@@ -194,3 +195,3 @@ void EditAccounts::slotEditNews()
194 if ( !newsList->currentItem() ) { 195 if ( !newsList->currentItem() ) {
195 QMessageBox::information( this, tr( "Error" ), 196 QMessageBox::information( this, tr( "Error" ),
196 tr( "<p>Please select an account.</p>" ), 197 tr( "<p>Please select an account.</p>" ),
@@ -208,3 +209,3 @@ void EditAccounts::slotDeleteNews()
208 if ( !newsList->currentItem() ) { 209 if ( !newsList->currentItem() ) {
209 QMessageBox::information( this, tr( "Error" ), 210 QMessageBox::information( this, tr( "Error" ),
210 tr( "<p>Please select an account.</p>" ), 211 tr( "<p>Please select an account.</p>" ),
@@ -213,3 +214,3 @@ void EditAccounts::slotDeleteNews()
213 } 214 }
214 215
215 Account *a = ((AccountListItem *) newsList->currentItem())->getAccount(); 216 Account *a = ((AccountListItem *) newsList->currentItem())->getAccount();
@@ -221,3 +222,3 @@ void EditAccounts::slotAdjustColumns()
221 int currPage = configTab->currentPageIndex(); 222 int currPage = configTab->currentPageIndex();
222 223
223 configTab->showPage( mailTab ); 224 configTab->showPage( mailTab );
@@ -235,3 +236,3 @@ void EditAccounts::accept()
235 settings->saveAccounts(); 236 settings->saveAccounts();
236 237
237 QDialog::accept(); 238 QDialog::accept();
@@ -264,3 +265,3 @@ IMAPconfig::IMAPconfig( IMAPaccount *account, QWidget *parent, const char *name,
264 data = account; 265 data = account;
265 266
266 fillValues(); 267 fillValues();
@@ -431,3 +432,3 @@ NNTPconfig::NNTPconfig( NNTPaccount *account, QWidget *parent, const char *name,
431 connect( loginBox, SIGNAL( toggled( bool ) ), passLine, SLOT( setEnabled( bool ) ) ); 432 connect( loginBox, SIGNAL( toggled( bool ) ), passLine, SLOT( setEnabled( bool ) ) );
432 433
433 fillValues(); 434 fillValues();
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp
index 93f3bb7..740e4cf 100644
--- a/noncore/net/mail/opiemail.cpp
+++ b/noncore/net/mail/opiemail.cpp
@@ -8,5 +8,5 @@ OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags )
8 settings = new Settings(); 8 settings = new Settings();
9 9
10 folderView->populate( settings->getAccounts() ); 10 folderView->populate( settings->getAccounts() );
11 11
12 connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); 12 connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) );
@@ -49,2 +49,7 @@ void OpieMail::slotEditAccounts()
49 eaDialog.exec(); 49 eaDialog.exec();
50 if ( settings ) delete settings;
51 settings = new Settings();
52
53 folderView->populate( settings->getAccounts() );
50} 54}
55
diff --git a/noncore/net/mail/opiemail.h b/noncore/net/mail/opiemail.h
index 7bcd818..ba60297 100644
--- a/noncore/net/mail/opiemail.h
+++ b/noncore/net/mail/opiemail.h
@@ -13,4 +13,6 @@ public:
13 static QString appName() { return QString::fromLatin1("opiemail"); } 13 static QString appName() { return QString::fromLatin1("opiemail"); }
14protected slots: 14
15public slots:
15 void slotComposeMail(); 16 void slotComposeMail();
17protected slots:
16 void slotSendQueued(); 18 void slotSendQueued();
@@ -19,3 +21,2 @@ protected slots:
19 void slotEditAccounts(); 21 void slotEditAccounts();
20
21private: 22private: