* 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:
parent
2b110c144b
commit
ad491b436f
@ -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()
|
||||
{
|
||||
|
@ -41,10 +41,6 @@ public:
|
||||
|
||||
bool IsShowingBlock(int32 blockIndex) const;
|
||||
|
||||
protected:
|
||||
virtual void AttachedToWindow();
|
||||
virtual void DetachedFromWindow();
|
||||
|
||||
private:
|
||||
void _UpdateBlocks();
|
||||
void _CreateBlocks();
|
||||
|
Loading…
x
Reference in New Issue
Block a user