diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-02-26 04:18:15 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-02-26 04:18:15 +0000 |
| commit | d52f6c9f71c1ee94539fe94bd821df608d7ee602 (patch) | |
| tree | 93bd622c4d687ca6b653f27282536eca24385005 /pokemodr/AbilityUI.cpp | |
| parent | 265835165d9f11f963087122d9c5c58f90dcd21c (diff) | |
[FIX] Apply/Discard buttons now set correctly when loaded or changes are discarded
[FIX] "Filler" tree items can no longer be selected
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@87 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/AbilityUI.cpp')
| -rw-r--r-- | pokemodr/AbilityUI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemodr/AbilityUI.cpp b/pokemodr/AbilityUI.cpp index 0ecdc419..d455d4c2 100644 --- a/pokemodr/AbilityUI.cpp +++ b/pokemodr/AbilityUI.cpp @@ -33,8 +33,8 @@ AbilityUI::AbilityUI(Ability* a, QWidget* parent) : QMetaObject::connectSlotsByName(this); setObjects(ability, ability_mod); connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); - emit(changed(false)); setGui(); + emit(changed(false)); } // KToolbar AbilityUI::getToolbar(QWidget* parent) @@ -56,8 +56,8 @@ void AbilityUI::on_buttonApply_clicked() void AbilityUI::on_buttonDiscard_clicked() { *ability_mod = *ability; - emit(changed(false)); setGui(); + emit(changed(false)); } void AbilityUI::on_varName_textChanged(const QString& n) |
