| 639 | } |
| 640 | |
| 641 | bool SaveFileFromTab(const char *file, const char *data, HWND editWnd) |
| 642 | { |
| 643 | FILE *fSave = fopen(file, "wb"); |
| 644 | if(!fSave) |
| 645 | { |
| 646 | if(file[0] != '?') |
| 647 | MessageBox(hWnd, "File cannot be saved", "Warning", MB_OK); |
| 648 | return false; |
| 649 | }else{ |
| 650 | fwrite(data, 1, strlen(data), fSave); |
| 651 | fclose(fSave); |
| 652 | } |
| 653 | RichTextarea::ValidateHistory(editWnd); |
| 654 | return true; |
| 655 | } |
| 656 | |
| 657 | void CloseTabWithFile(TabbedFiles::TabInfo &info) |
| 658 | { |
no outgoing calls
no test coverage detected