summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-08 22:31:38 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-08 22:31:38 +0100
commitbc5c031e43eff506c925682349dd2a52b89d6565 (patch)
tree6c429dfa2386fcde5e1e9b8f8994dc8bd77b0b2f /src/gui/widgets/listbox.cpp
parented39c71b2b6b47931f352ca07b49f631d6bf713a (diff)
downloadmana-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/listbox.cpp')
-rw-r--r--src/gui/widgets/listbox.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp
index e97f1d63..a24cf599 100644
--- a/src/gui/widgets/listbox.cpp
+++ b/src/gui/widgets/listbox.cpp
@@ -34,18 +34,13 @@
float ListBox::mAlpha = 1.0;
-ListBox::ListBox(gcn::ListModel *listModel, bool deleteModel):
- gcn::ListBox(listModel),
- mDeleteModel(deleteModel)
+ListBox::ListBox(gcn::ListModel *listModel):
+ gcn::ListBox(listModel)
{
}
ListBox::~ListBox()
{
- if (mDeleteModel)
- {
- delete mListModel;
- }
}
void ListBox::updateAlpha()