author | harlekin <harlekin> | 2003-12-17 00:18:06 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-17 00:18:06 (UTC) |
commit | fb054f9c69224e14f446f405098bd5166377f58d (patch) (unidiff) | |
tree | 6c729398a7f69eedf5554aa3c2509784eb9806df | |
parent | 30e3e50ecb912e93faeeafbfff36f8032a904b84 (diff) | |
download | opie-fb054f9c69224e14f446f405098bd5166377f58d.zip opie-fb054f9c69224e14f446f405098bd5166377f58d.tar.gz opie-fb054f9c69224e14f446f405098bd5166377f58d.tar.bz2 |
new account, changed account etc are there now without a restart ,)
-rw-r--r-- | noncore/net/mail/editaccounts.cpp | 1 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 5 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.h | 5 |
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 | |||
@@ -91,12 +91,13 @@ void EditAccounts::slotNewAccount( const QString &type ) | |||
91 | SMTPconfig smtp( account, this, 0, true ); | 91 | SMTPconfig smtp( account, this, 0, true ); |
92 | smtp.showMaximized(); | 92 | smtp.showMaximized(); |
93 | if ( QDialog::Accepted == smtp.exec() ) { | 93 | if ( QDialog::Accepted == smtp.exec() ) { |
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 | } |
100 | } else if ( type.compare( "NNTP" ) == 0 ) { | 101 | } else if ( type.compare( "NNTP" ) == 0 ) { |
101 | qDebug( "-> config NNTP" ); | 102 | qDebug( "-> config NNTP" ); |
102 | NNTPaccount *account = new NNTPaccount(); | 103 | NNTPaccount *account = new NNTPaccount(); |
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 | |||
@@ -44,7 +44,12 @@ void OpieMail::slotEditAccounts() | |||
44 | { | 44 | { |
45 | qDebug( "Edit Accounts" ); | 45 | qDebug( "Edit Accounts" ); |
46 | EditAccounts eaDialog( settings, this, 0, true ); | 46 | EditAccounts eaDialog( settings, this, 0, true ); |
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 | |||
@@ -8,19 +8,20 @@ class OpieMail : public MainWindow | |||
8 | { | 8 | { |
9 | Q_OBJECT | 9 | Q_OBJECT |
10 | 10 | ||
11 | public: | 11 | public: |
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"); } |
14 | protected slots: | 14 | |
15 | public slots: | ||
15 | void slotComposeMail(); | 16 | void slotComposeMail(); |
17 | protected 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 | |||
21 | private: | 22 | private: |
22 | Settings *settings; | 23 | Settings *settings; |
23 | 24 | ||
24 | }; | 25 | }; |
25 | 26 | ||
26 | #endif | 27 | #endif |