Lines 1147-1152
Link Here
|
1147 |
this, SLOT(slotEditNotifications()) ); |
1147 |
this, SLOT(slotEditNotifications()) ); |
1148 |
} |
1148 |
} |
1149 |
|
1149 |
|
|
|
1150 |
AccountsPageReceivingTab::~AccountsPageReceivingTab() |
1151 |
{ |
1152 |
// When hitting Cancel or closing the dialog with the window-manager-button, |
1153 |
// we have a number of things to clean up: |
1154 |
|
1155 |
// The newly created accounts |
1156 |
QValueList< QGuardedPtr<KMAccount> >::Iterator it; |
1157 |
for (it = mNewAccounts.begin(); it != mNewAccounts.end(); ++it ) { |
1158 |
delete (*it); |
1159 |
} |
1160 |
mNewAccounts.clear(); |
1161 |
|
1162 |
// The modified accounts |
1163 |
QValueList<ModifiedAccountsType*>::Iterator j; |
1164 |
for ( j = mModifiedAccounts.begin() ; j != mModifiedAccounts.end() ; ++j ) { |
1165 |
delete (*j)->newAccount; |
1166 |
delete (*j); |
1167 |
} |
1168 |
mModifiedAccounts.clear(); |
1169 |
|
1170 |
|
1171 |
} |
1150 |
|
1172 |
|
1151 |
void AccountsPage::ReceivingTab::slotAccountSelected() |
1173 |
void AccountsPage::ReceivingTab::slotAccountSelected() |
1152 |
{ |
1174 |
{ |
Lines 1398-1405
Link Here
|
1398 |
// Add accounts marked as new |
1420 |
// Add accounts marked as new |
1399 |
QValueList< QGuardedPtr<KMAccount> >::Iterator it; |
1421 |
QValueList< QGuardedPtr<KMAccount> >::Iterator it; |
1400 |
for (it = mNewAccounts.begin(); it != mNewAccounts.end(); ++it ) { |
1422 |
for (it = mNewAccounts.begin(); it != mNewAccounts.end(); ++it ) { |
1401 |
kmkernel->acctMgr()->add( *it ); |
1423 |
kmkernel->acctMgr()->add( *it ); // calls installTimer too |
1402 |
(*it)->installTimer(); |
|
|
1403 |
} |
1424 |
} |
1404 |
|
1425 |
|
1405 |
// Update accounts that have been modified |
1426 |
// Update accounts that have been modified |