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

Method handleButtonClicked

src/plugins/core/session/sessiondialog.cpp:203–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void SessionNameInputDialog::handleButtonClicked(int index)
204{
205 if (index == 0)
206 return reject();
207
208 const auto name = sessionName();
209 if (SessionManager::instance()->sessionList().contains(name)) {
210 QString msg = tr("The session already exists, please re-enter.");
211 lineEdit->showAlertMessage(msg);
212 return;
213 }
214
215 if (index == 2)
216 isSwitchTo = true;
217
218 accept();
219}
220
221void SessionNameInputDialog::setSessionName(const QString &name)
222{

Callers

nothing calls this directly

Calls 2

sessionListMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected