[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdepim/kmail
From: Allen Winter <winter () kde ! org>
Date: 2006-11-21 15:53:42
Message-ID: 1164124422.856269.6165.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 606743 by winterz:
Patch from Matt, fixes "when delivery-method is renamed this is not populated".
Approved by Till. Thanks Matt.
CCMAIL: matt.douhan@kdemail.net
BUGS: 88369
M +20 -0 configuredialog.cpp
--- branches/KDE/3.5/kdepim/kmail/configuredialog.cpp #606742:606743
@@ -841,6 +841,8 @@
QListViewItem *item = mTransportList->selectedItem();
if ( !item ) return;
+ const QString& originalTransport = item->text(0);
+
QPtrListIterator<KMTransportInfo> it( mTransportInfoList );
for ( it.toFirst() ; it.current() ; ++it )
if ( (*it)->name == item->text(0) ) break;
@@ -869,6 +871,24 @@
// and insert the new name at the position of the old in the list of
// strings; then broadcast the new list:
transportNames.insert( transportNames.at( entryLocation ), (*it)->name );
+ const QString& newTransportName = (*it)->name;
+
+ QStringList changedIdents;
+ KPIM::IdentityManager * im = kmkernel->identityManager();
+ for ( KPIM::IdentityManager::Iterator it = im->modifyBegin(); it != im->modifyEnd(); ++it ) {
+ if ( originalTransport == (*it).transport() ) {
+ (*it).setTransport( newTransportName );
+ changedIdents += (*it).identityName();
+ }
+ }
+
+ if ( !changedIdents.isEmpty() ) {
+ QString information = i18n( "This identity has been changed to use the modified transport:",
+ "These %n identities have been changed to use the modified transport:",
+ changedIdents.count() );
+ KMessageBox::informationList( this, information, changedIdents );
+ }
+
emit transportListChanged( transportNames );
emit changed( true );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic