Temporarily disable all note editing
| 2514 | //* Temporarily disable all note editing |
| 2515 | //************************************************** |
| 2516 | void NixNote::disableEditing() { |
| 2517 | global.disableEditing = !global.disableEditing; |
| 2518 | for (int i=0; i<tabWindow->browserList->size(); i++) { |
| 2519 | NBrowserWindow *browser = tabWindow->browserList->at(i); |
| 2520 | browser->setReadOnly(global.disableEditing && browser->isReadOnly); |
| 2521 | } |
| 2522 | for (int i=0; i<tabWindow->externalList->size(); i++) { |
| 2523 | NBrowserWindow *browser = tabWindow->externalList->at(i)->browser; |
| 2524 | browser->setReadOnly(global.disableEditing && browser->isReadOnly); |
| 2525 | } |
| 2526 | } |
| 2527 | |
| 2528 | |
| 2529 |
nothing calls this directly
no test coverage detected