Issue 122332

Summary: [sidebar] Wrong context after focusing other application window
Product: General Reporter: Andre <awf.aoo>
Component: uiAssignee: Andre <awf.aoo>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: issues
Version: 4.0.0-dev   
Target Milestone: 4.0.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 121420    

Description Andre 2013-05-17 14:20:36 UTC
How to reproduce:

1. Create Writer document
2. Create Impress document
2a. Create shape with text
2b. Put shape in text edit mode
3. Move focus to Writer document
   - by Alt-Tab on Windows
   - or by clicking on the Writer window.

After that the sidebar in the Impress window shows the layout property panel.

4. Move focus back to Impress document

The Impress sidebar still shows the layout property panel, even though the text is still in edit more.

Expected result: the Impress sidebar should show the panels for text editing: Text, Paragraph, Area, Line, Position and Size.
Comment 1 SVN Robot 2013-05-27 11:18:05 UTC
"af" committed SVN revision 1486578 into trunk:
122332: Don't change sidebar context when switching to other application window.
Comment 2 Andre 2013-05-27 11:18:51 UTC
The bug was caused by using SfxShell::Activate() and Deactivate() to notify context changes.  Deactivate() is called when an application window looses focus.

Reworked the context notification in sd and sc to fix this.