MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / runInputDialog

Method runInputDialog

src/plugins/core/session/sessionlistview.cpp:195–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void SessionListView::runInputDialog(SessionNameInputDialog *dialog,
196 std::function<void(const QString &)> handler)
197{
198 if (dialog->exec() == QDialog::Accepted) {
199 const auto name = dialog->sessionName();
200 if (name.isEmpty())
201 return;
202
203 handler(name);
204 model.reset();
205 if (dialog->isSwitchToRequested()) {
206 SessionManager::instance()->loadSession(name);
207 Q_EMIT sessionSwitched();
208 }
209 Q_EMIT sessionCreated(name);
210 }
211}

Callers

nothing calls this directly

Calls 6

isSwitchToRequestedMethod · 0.80
loadSessionMethod · 0.80
execMethod · 0.45
sessionNameMethod · 0.45
isEmptyMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected