diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-08 22:31:38 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-08 22:31:38 +0100 |
commit | bc5c031e43eff506c925682349dd2a52b89d6565 (patch) | |
tree | 6c429dfa2386fcde5e1e9b8f8994dc8bd77b0b2f /src/gui/widgets/dropdown.cpp | |
parent | ed39c71b2b6b47931f352ca07b49f631d6bf713a (diff) | |
download | mana-client-bc5c031e43eff506c925682349dd2a52b89d6565.tar.gz mana-client-bc5c031e43eff506c925682349dd2a52b89d6565.tar.bz2 mana-client-bc5c031e43eff506c925682349dd2a52b89d6565.tar.xz mana-client-bc5c031e43eff506c925682349dd2a52b89d6565.zip |
Delete models explicitly rather than relying on booleans
It is more clear in the end. Also fixed deleting of the mode list model.
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index 80c3747e..b8f5b895 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -43,10 +43,10 @@ Image *DropDown::buttons[2][2]; ImageRect DropDown::skin; float DropDown::mAlpha = 1.0; -DropDown::DropDown(gcn::ListModel *listModel, bool deleteModel): +DropDown::DropDown(gcn::ListModel *listModel): gcn::DropDown::DropDown(listModel, new ScrollArea, - new ListBox(listModel, deleteModel)) + new ListBox(listModel)) { setFrameSize(2); |