Bug 354760

Summary: Toolbar keyword toggle buttons are not disabled when no message is selected anymore
Product: [Applications] trojita Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: Desktop GUIAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version First Reported In: git   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Erik Quaeghebeur 2015-11-02 23:09:58 UTC
Toolbar keyword (Deleted, Flagged,...) toggle buttons are not disabled (grayed out) when no message is selected anymore.

Reproducible: Always

Steps to Reproduce:
1. select mailbox
2. select some messages
3. unselect all messages

Actual Results:  
1. toolbar keyword toggle buttons are inactive
2. toolbar keyword toggle buttons are active (clickable)
3. toolbar keyword toggle buttons are active (clickable)

Expected Results:  
1. toolbar keyword toggle buttons are inactive
2. toolbar keyword toggle buttons are active (clickable)
3. toolbar keyword toggle buttons are inactive
Comment 1 Jan Kundrát 2015-12-01 09:59:17 UTC
Git commit 9a5615adb9ef6b1a6174b273377a165cbdc5f192 by Jan Kundrát.
Committed on 30/11/2015 at 16:03.
Pushed by gerrit into branch 'master'.

GUI: Do not enable per-message actions on startup

...or on network reconnect. These actions all depend on the set of
selected messages. As a result of more or less non-specific slot
execution order, the GUI items were inadvertently enabled even though no
messages were actually selected.
Change-Id: I0b5ce16e93c8ca431b5a6853ea4d30927b43007a

M  +1    -5    src/Gui/Window.cpp

http://commits.kde.org/trojita/9a5615adb9ef6b1a6174b273377a165cbdc5f192