Version: 1.5.94 (using KDE 3.1.94 (CVS >= 20031206), compiled sources) Compiler: gcc version 3.3.2 (Debian) OS: Linux (i686) release 2.6.0dell-optiplex If I go to an (IMAP) folder and edit the Properties to change from 'Show' from Default to Receiver and I press OK nothing happens. Only when I click one time in the headers view the GUI is updated and I see the correct names appear.
*** Bug 81929 has been marked as a duplicate of this bug. ***
*** Bug 101323 has been marked as a duplicate of this bug. ***
SVN commit 423585 by zander: * Fix inconsitent use of QString:null and an empty string * Fix the headers->reset() method to also update the sender/receiver header name properly * Make sure the header view is refreshed after the user change the setting in the config dialog BUG: 72308 M +9 -3 kmfolderdia.cpp M +4 -0 kmheaders.cpp --- trunk/KDE/kdepim/kmail/kmfolderdia.cpp #423584:423585 @@ -390,8 +390,8 @@ QString whoField; if (mDlg->folder()) whoField = mDlg->folder()->userWhoField(); if (whoField.isEmpty()) mShowSenderReceiverComboBox->setCurrentItem(0); - if (whoField == "From") mShowSenderReceiverComboBox->setCurrentItem(1); - if (whoField == "To") mShowSenderReceiverComboBox->setCurrentItem(2); + else if (whoField == "From") mShowSenderReceiverComboBox->setCurrentItem(1); + else if (whoField == "To") mShowSenderReceiverComboBox->setCurrentItem(2); // sender identity @@ -554,13 +554,19 @@ { KMFolder* folder = mDlg->folder(); folder->setIdentity( mIdentityComboBox->currentIdentity() ); + QString oldWhoField = folder->userWhoField(); // set whoField if (mShowSenderReceiverComboBox->currentItem() == 1) folder->setUserWhoField("From"); else if (mShowSenderReceiverComboBox->currentItem() == 2) folder->setUserWhoField("To"); else - folder->setUserWhoField(QString::null); + folder->setUserWhoField(""); + if( oldWhoField.compare(folder->userWhoField()) != 0 ) + { + if(mDlg->folderTree()->mainWidget() && mDlg->folderTree()->mainWidget()->headers()) + mDlg->folderTree()->mainWidget()->headers()->reset(); + } folder->setIgnoreNewMail( !mNotifyOnNewMailCheckBox->isChecked() ); folder->setPutRepliesInSameFolder( mKeepRepliesInSameFolderCheckBox->isChecked() ); --- trunk/KDE/kdepim/kmail/kmheaders.cpp #423584:423585 @@ -519,6 +519,10 @@ int id = currentItemIndex(); noRepaint = true; clear(); + QString colText = i18n( "Sender" ); + if ( mFolder && (mFolder->whoField().lower() == "to") && !mPaintInfo.showReceiver) + colText = i18n("Receiver"); + setColumnText(mPaintInfo.senderCol, colText); noRepaint = false; mItems.resize(0); updateMessageList();
This bug is present in kmail 1.11.0 (in KDE 4.2 final) Please re-open this bug.
This works again in kmail 1.12.90 (and possibly in kmail 1.12.X from kde 4.3.X).
I was not able to replicate this bug with kmail 1.12.0 (KDE 4.3) and with trunk. When I switch from "Default" to "Receiver" and press "OK", the names change. Anyone still having this problem with KDE 4.3 or trunk?