| 482 | } |
| 483 | |
| 484 | void WorkspaceWidgetPrivate::handleSessionLoaded() |
| 485 | { |
| 486 | while (tabWidgetList.size() > 1) { |
| 487 | auto tabWidget = tabWidgetList.takeLast(); |
| 488 | tabWidget->deleteLater(); |
| 489 | } |
| 490 | |
| 491 | tabWidgetList.first()->closeAllEditor(); |
| 492 | focusTabWidget = tabWidgetList.first(); |
| 493 | auto symbolWidget = SymbolWidgetGenerator::instance()->symbolWidget(); |
| 494 | symbolWidget->setEditor(nullptr); |
| 495 | |
| 496 | const auto &openedFiles = sessionSrv->value(kOpenedFileList).toStringList(); |
| 497 | const auto ¤tFile = sessionSrv->value(kCurrentFile).toString(); |
| 498 | for (const auto &file : openedFiles) |
| 499 | handleOpenFile("", file); |
| 500 | if (!currentFile.isEmpty()) |
| 501 | handleOpenFile("", currentFile); |
| 502 | } |
| 503 | |
| 504 | void WorkspaceWidgetPrivate::initConnection() |
| 505 | { |
nothing calls this directly
no test coverage detected