mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 00:58:37 +02:00
Bug 1640 - Reset Toolbars reduces Selection Toolbar to a stub
This commit is contained in:
parent
78135d25fd
commit
a2ba221554
@ -542,24 +542,20 @@ void ToolManager::Reset()
|
||||
floater = bar->GetParent();
|
||||
}
|
||||
|
||||
// Decide which dock.
|
||||
if (ndx == SelectionBarID
|
||||
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
||||
|| ndx == SpectralSelectionBarID
|
||||
#endif
|
||||
)
|
||||
{
|
||||
dock = mBotDock;
|
||||
|
||||
wxCommandEvent e;
|
||||
bar->GetEventHandler()->ProcessEvent(e);
|
||||
}
|
||||
else
|
||||
{
|
||||
dock = mTopDock;
|
||||
bar->ReCreateButtons();
|
||||
}
|
||||
|
||||
// Recreate bar buttons (and resize it)
|
||||
bar->ReCreateButtons();
|
||||
bar->EnableDisableButtons();
|
||||
|
||||
#if 0
|
||||
if( bar->IsResizable() )
|
||||
{
|
||||
@ -567,6 +563,7 @@ void ToolManager::Reset()
|
||||
}
|
||||
#endif
|
||||
|
||||
// Hide some bars.
|
||||
if( ndx == MeterBarID
|
||||
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
||||
|| ndx == SpectralSelectionBarID
|
||||
@ -579,10 +576,10 @@ void ToolManager::Reset()
|
||||
|| ndx == SelectionBarID
|
||||
#endif
|
||||
)
|
||||
{
|
||||
expose = false;
|
||||
}
|
||||
|
||||
// Next condition will alwys (?) be true, as the reset configuration is
|
||||
// with no floating toolbars.
|
||||
if( dock != NULL )
|
||||
{
|
||||
// when we dock, we reparent, so bar is no longer a child of floater.
|
||||
|
Loading…
x
Reference in New Issue
Block a user