Skip to content

Commit 494fc94

Browse files
committed
Fixed #17253
1 parent 30dd84a commit 494fc94

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/netedit/dialogs/options/GNENetgenerateOptionsDialog.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ GNENetgenerateOptionsDialog::isOptionModified() const {
6262
}
6363

6464

65+
long
66+
GNENetgenerateOptionsDialog::onCmdRun(FXObject*, FXSelector, void*) {
67+
// close dialog canceling
68+
closeDialogCanceling();
69+
// run netgenerate
70+
return myApplicationWindow->tryHandle(this, FXSEL(SEL_COMMAND, MID_GNE_RUNNETGENERATE), nullptr);
71+
}
72+
73+
6574
long
6675
GNENetgenerateOptionsDialog::onCmdCancel(FXObject*, FXSelector, void*) {
6776
// reset options

src/netedit/dialogs/options/GNENetgenerateOptionsDialog.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ class GNENetgenerateOptionsDialog : public GNEDialog {
5757
/// @name FOX-callbacks
5858
/// @{
5959

60+
/// @brief event after press run button
61+
long onCmdRun(FXObject*, FXSelector, void*);
62+
6063
/// @brief called when cancel button is pressed (or dialog is closed)
6164
long onCmdCancel(FXObject*, FXSelector, void*);
6265

0 commit comments

Comments
 (0)