Diffstat (limited to 'noncore/unsupported/mail2/configdiag.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/configdiag.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/noncore/unsupported/mail2/configdiag.cpp b/noncore/unsupported/mail2/configdiag.cpp index be1f1f4..b89b937 100644 --- a/noncore/unsupported/mail2/configdiag.cpp +++ b/noncore/unsupported/mail2/configdiag.cpp | |||
@@ -79,12 +79,13 @@ void ConfigDiag::slotFillLists() | |||
79 | 79 | ||
80 | void ConfigDiag::slotNewAccount() | 80 | void ConfigDiag::slotNewAccount() |
81 | { | 81 | { |
82 | AccountEditor *editor = new AccountEditor(Account(), 0, 0, true); | 82 | Account account; |
83 | editor->showMaximized(); | 83 | AccountEditor editor(account, 0, 0, true); |
84 | editor->show(); | 84 | editor.showMaximized(); |
85 | editor.show(); | ||
85 | 86 | ||
86 | if (QDialog::Accepted == editor->exec()) { | 87 | if (QDialog::Accepted == editor.exec()) { |
87 | ConfigFile::updateAccount(editor->_account); | 88 | ConfigFile::updateAccount(editor._account); |
88 | slotFillLists(); | 89 | slotFillLists(); |
89 | emit changed(); | 90 | emit changed(); |
90 | } | 91 | } |
@@ -98,12 +99,12 @@ void ConfigDiag::slotEditAccount() | |||
98 | } | 99 | } |
99 | Account account = ((AccountListItem *)accountList->currentItem())->account(); | 100 | Account account = ((AccountListItem *)accountList->currentItem())->account(); |
100 | 101 | ||
101 | AccountEditor *editor = new AccountEditor(account, 0, 0, true); | 102 | AccountEditor editor(account, 0, 0, true); |
102 | editor->showMaximized(); | 103 | editor.showMaximized(); |
103 | editor->show(); | 104 | editor.show(); |
104 | 105 | ||
105 | if (QDialog::Accepted == editor->exec()) { | 106 | if (QDialog::Accepted == editor.exec()) { |
106 | ConfigFile::updateAccount(editor->_account); | 107 | ConfigFile::updateAccount(editor._account); |
107 | slotFillLists(); | 108 | slotFillLists(); |
108 | emit changed(); | 109 | emit changed(); |
109 | } | 110 | } |