One more.
This commit is contained in:
@ -368,7 +368,7 @@ int a_Dialog_choice(const char *title, const char *msg, ...)
|
|||||||
int ww = 140 + n * 60, wh = 120;
|
int ww = 140 + n * 60, wh = 120;
|
||||||
int bw = (ww - gap) / n - gap, bh = 45;
|
int bw = (ww - gap) / n - gap, bh = 45;
|
||||||
|
|
||||||
Fl_Window *window = new Fl_Window(ww, wh, title);
|
auto window = std::make_unique< Fl_Window >(ww, wh, title);
|
||||||
window->set_modal();
|
window->set_modal();
|
||||||
window->begin();
|
window->begin();
|
||||||
|
|
||||||
@ -402,7 +402,7 @@ int a_Dialog_choice(const char *title, const char *msg, ...)
|
|||||||
_MSG("Dialog_choice answer = %d\n", answer);
|
_MSG("Dialog_choice answer = %d\n", answer);
|
||||||
td->buffer(NULL);
|
td->buffer(NULL);
|
||||||
delete buf;
|
delete buf;
|
||||||
delete window;
|
window.reset();
|
||||||
|
|
||||||
return choice_answer;
|
return choice_answer;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user