summaryrefslogtreecommitdiff
path: root/src/gui/editdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editdialog.cpp')
-rw-r--r--src/gui/editdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/editdialog.cpp b/src/gui/editdialog.cpp
index 1bd3ccbf5..37033af64 100644
--- a/src/gui/editdialog.cpp
+++ b/src/gui/editdialog.cpp
@@ -66,9 +66,11 @@ EditDialog::EditDialog(const std::string &title, const std::string &msg,
void EditDialog::action(const gcn::ActionEvent &event)
{
// Proxy button events to our listeners
- ActionListenerIterator i;
- for (i = mActionListeners.begin(); i != mActionListeners.end(); ++i)
+ for (ActionListenerIterator i = mActionListeners.begin(),
+ i_end = mActionListeners.end(); i != i_end; ++i)
+ {
(*i)->action(event);
+ }
if (event.getId() == mEventOk)
scheduleDelete();