Showing the changes to interface/src/ui/ScriptEditorWindow.cpp (1 of 3 files). Show all
Unified · Split
| @@ -202,3 +202,9 @@ void ScriptEditorWindow::updateScriptNameOrStatus() { · 201 unmodified lines | ||
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | } |
| 205 | + | |
| 206 | +void ScriptEditorWindow::terminateCurrentTab() { | |
| 207 | + if (_ScriptEditorWindowUI->tabWidget->currentIndex() != -1) { | |
| 208 | + _ScriptEditorWindowUI->tabWidget->removeTab(_ScriptEditorWindowUI->tabWidget->currentIndex()); | |
| 209 | + } | |
| 210 | +} | |