mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Prevent crash when focusing button.
This commit is contained in:
parent
cbcb0e2ce4
commit
5489ef0b70
@ -215,12 +215,11 @@ int main(int argc, char **argv) {
|
||||
Fl_Button* close_button = new Fl_Button(435, 224, 90, 25, _("&Close"));
|
||||
close_button->callback(close_cb);
|
||||
|
||||
// check_button somehow steal focus
|
||||
close_button->take_focus();
|
||||
|
||||
win->end();
|
||||
window_center_on_screen(win);
|
||||
win->show(argc, argv);
|
||||
// check_button somehow steal focus
|
||||
close_button->take_focus();
|
||||
|
||||
Fl::run();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user