* Moved _CreateBlocks() back into the constructor. That used to make bug #3572

more reproducible, but it doesn't work for me anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30148 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-04-13 13:12:09 +00:00
parent 2b110c144b
commit ad491b436f
2 changed files with 1 additions and 20 deletions

View File

@ -28,6 +28,7 @@ UnicodeBlockView::UnicodeBlockView(const char* name)
fShowPrivateBlocks(false),
fShowContainedBlocksOnly(false)
{
_CreateBlocks();
}
@ -79,22 +80,6 @@ UnicodeBlockView::IsShowingBlock(int32 blockIndex) const
}
void
UnicodeBlockView::AttachedToWindow()
{
// TODO: if we're calling this in the constructor, strange things happen
_CreateBlocks();
}
void
UnicodeBlockView::DetachedFromWindow()
{
MakeEmpty();
fBlocks.MakeEmpty();
}
void
UnicodeBlockView::_UpdateBlocks()
{

View File

@ -41,10 +41,6 @@ public:
bool IsShowingBlock(int32 blockIndex) const;
protected:
virtual void AttachedToWindow();
virtual void DetachedFromWindow();
private:
void _UpdateBlocks();
void _CreateBlocks();