Summary: | Delayed update after switching sender/receiver | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Thomas Zander <zander> |
Component: | new message list | Assignee: | Szymon Stefanek <pragma> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bigras.bruno, bjoern, marco.krohn, mschiff |
Priority: | NOR | ||
Version: | 1.11.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Thomas Zander
2004-01-10 14:21:57 UTC
*** 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? |