diff --git a/src/plugins/projectexplorer/sessiondialog.cpp b/src/plugins/projectexplorer/sessiondialog.cpp index 1285bf171d3..ec5fadbe131 100644 --- a/src/plugins/projectexplorer/sessiondialog.cpp +++ b/src/plugins/projectexplorer/sessiondialog.cpp @@ -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(); } diff --git a/src/plugins/projectexplorer/sessiondialog.ui b/src/plugins/projectexplorer/sessiondialog.ui index ab2f4b08a0c..ad11881aaef 100644 --- a/src/plugins/projectexplorer/sessiondialog.ui +++ b/src/plugins/projectexplorer/sessiondialog.ui @@ -14,17 +14,10 @@ Session Manager - - - - Choose your session - - - - + - + @@ -62,14 +55,14 @@ - + <a href="qthelp://com.nokia.qtcreator/doc/creator-quick-tour.html#session-management-in-qt-creator">What is a Session?</a> - + QDialogButtonBox::Cancel|QDialogButtonBox::Ok