Session manager will no longer try to load a session when clicking OK.

This double role of managing sessions *and* loading the active one was
always a bit odd and confusing (unexpected behavior).

Reviewed-By: dt
This commit is contained in:
Daniel Molkentin
2009-06-05 17:28:33 +02:00
parent 98981a6700
commit 6c7f03e29e
2 changed files with 6 additions and 15 deletions

View File

@@ -139,15 +139,13 @@ void SessionDialog::updateActions()
if (m_ui.sessionList->currentItem())
enableDelete = (m_ui.sessionList->currentItem()->text() != m_sessionManager->activeSession()
&& m_ui.sessionList->currentItem()->text() != "default");
&& (m_ui.sessionList->currentItem()->text() != QLatin1String("default")));
m_ui.btDelete->setEnabled(enableDelete);
}
void SessionDialog::accept()
{
if (m_ui.sessionList->currentItem()) {
m_sessionManager->loadSession(m_ui.sessionList->currentItem()->text());
}
// do nothing
QDialog::accept();
}