summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/editaccounts.cpp1
-rw-r--r--noncore/net/mail/opiemail.cpp5
-rw-r--r--noncore/net/mail/opiemail.h5
3 files changed, 9 insertions, 2 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
@@ -94,6 +94,7 @@ void EditAccounts::slotNewAccount( const QString &type )
94 settings->addAccount( account ); 94 settings->addAccount( account );
95 account->save(); 95 account->save();
96 slotFillLists(); 96 slotFillLists();
97
97 } else { 98 } else {
98 account->remove(); 99 account->remove();
99 } 100 }
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
@@ -47,4 +47,9 @@ void OpieMail::slotEditAccounts()
47 eaDialog.showMaximized(); 47 eaDialog.showMaximized();
48 eaDialog.slotAdjustColumns(); 48 eaDialog.slotAdjustColumns();
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
@@ -11,13 +11,14 @@ class OpieMail : public MainWindow
11public: 11public:
12 OpieMail( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); 12 OpieMail( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 );
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();
17 void slotSearchMails(); 19 void slotSearchMails();
18 void slotEditSettings(); 20 void slotEditSettings();
19 void slotEditAccounts(); 21 void slotEditAccounts();
20
21private: 22private:
22 Settings *settings; 23 Settings *settings;
23 24