Skip to content
Snippets Groups Projects
Commit 81787fbd authored by Leandro Melo's avatar Leandro Melo
Browse files

Session manager: Enable clone/switch if there's an item currently selected.

Reviewed-by: dt
parent 8d48b3a0
No related branches found
No related tags found
No related merge requests found
......@@ -194,6 +194,8 @@ void SessionDialog::updateActions()
bool isActive = (m_ui.sessionList->currentItem()->text() == m_sessionManager->activeSession());
m_ui.btDelete->setEnabled(!isActive && !isDefault);
m_ui.btRename->setEnabled(!isDefault);
m_ui.btClone->setEnabled(true);
m_ui.btSwitch->setEnabled(true);
} else {
m_ui.btDelete->setEnabled(false);
m_ui.btRename->setEnabled(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment