| 438 | } |
| 439 | |
| 440 | void CsvApplication::disableUndoCB(Fl_Widget *, void *, bool confirmDialog) { |
| 441 | int winIndex = app.getTopWindow(); |
| 442 | int choice = 0; |
| 443 | if( confirmDialog ) { |
| 444 | choice = CsvApplication::myFlChoice("Confirmation", "Do you really want to disable Undo functionality?<br><small>Only recommended for really large tables.</small>", {"Yes", "No"}); |
| 445 | } |
| 446 | if( choice == 0 ) { |
| 447 | windows[winIndex].disableUndo(); |
| 448 | app.updateMenu(winIndex); |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | void CsvApplication::enableUndoCB(Fl_Widget *, void *) { |
| 453 | int winIndex = app.getTopWindow(); |
no test coverage detected