Summary: | Only show thread operations for threaded messages | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Sean Lynch <techniq35> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | bjoern, jonas.vejlin |
Priority: | NOR | ||
Version: | 1.7.92 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Screenshot |
Description
Sean Lynch
2005-02-10 01:35:42 UTC
CVS commit by tilladam: Enable thread actions only for single messages which are part of a thread and for multiple messages if they are part of the same thread. BUGS: 98986 M +8 -2 kmmainwidget.cpp 1.315 --- kdepim/kmail/kmmainwidget.cpp #1.314:1.315 @@ -2881,6 +2881,8 @@ void KMMainWidget::updateMessageActions( updateListFilterAction(); - bool allSelectedInCommonThread = true; + bool allSelectedInCommonThread = false; + bool singleMailIsPartOfThread = false; if ( count > 1 && mHeaders->isThreaded() ) { + allSelectedInCommonThread = true; QListViewItem * curItemParent = mHeaders->currentItem(); while ( curItemParent->parent() ) @@ -2897,8 +2899,12 @@ void KMMainWidget::updateMessageActions( } } + if ( mHeaders->isThreaded() && count == 1 ) { + QListViewItem *cur = mHeaders->currentItem(); + singleMailIsPartOfThread = cur->parent() || cur->childCount() > 0; + } bool mass_actions = count >= 1; bool thread_actions = mass_actions && - allSelectedInCommonThread && + ( allSelectedInCommonThread || singleMailIsPartOfThread ) && mHeaders->isThreaded(); mStatusMenu->setEnabled( mass_actions ); Created attachment 13599 [details]
Screenshot
This seems to have returned (I've actually noticed it for a while in SVN.. but
forgot I had a bug opened for it). Notice the email I have right clicked on is
a solitary message, yet it shows options for threaded messages (its just
unneeded options which clutter the menu and could confuse a user)
Oops.. forgot to reopen bug.. see comment/screenshot above do you still have the problem with recent version? Well, I still see for unthreaded messages the option "Mark Group as" in KDE 4.3- think this is what this bug adresses. Thank you for taking the time to file a bug report. KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2. We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback. |