diff options
author | deva <deva> | 2010-08-19 17:10:21 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-19 17:10:21 +0000 |
commit | fb6bcbfc31da3cdef6f6950e3e6aec900909b02e (patch) | |
tree | 7f93663195ad6b0df439ac7842c5527a6f9a881a /client/widgets/multilist.cc | |
parent | 24e801f1654694d4413f7ae1260fa748c1af825d (diff) |
Behave just a little bit nicer...
Diffstat (limited to 'client/widgets/multilist.cc')
-rw-r--r-- | client/widgets/multilist.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/client/widgets/multilist.cc b/client/widgets/multilist.cc index 8cd60b7..b913208 100644 --- a/client/widgets/multilist.cc +++ b/client/widgets/multilist.cc @@ -129,6 +129,9 @@ void MultiList::changed() bool MultiList::preValid() { + return list->count() != 0; + + /* if(innerwidget_has_changes) { switch(MessageBox::warning(NULL, "Gem ændringerne i listen?", @@ -151,8 +154,8 @@ bool MultiList::preValid() break; } } - return true; + */ } QString MultiList::value() @@ -208,7 +211,7 @@ void MultiList::add() list->addItem(innerwidget->value()); emit wasChanged(); - innerwidget->setValues(); + innerwidget->setValues(); // Hack to reset widgets to their initial values. innerwidget_has_changes = false; emit eventOnChange(); @@ -242,5 +245,5 @@ void MultiList::setWdgValid(bool valid) palette.setBrush(QPalette::Base, QBrush(QColor(230, 200, 200))); } - frame->setPalette(palette); + list->setPalette(palette); } |