forked from qt-creator/qt-creator
do NOT steal the initial focus from the editor. Restore a session,
focus should be on the editor, not on some hidden tab widget on the projects pane.
This commit is contained in:
@@ -131,8 +131,6 @@ ProjectWindow::~ProjectWindow()
|
|||||||
|
|
||||||
void ProjectWindow::restoreStatus()
|
void ProjectWindow::restoreStatus()
|
||||||
{
|
{
|
||||||
m_panelsTabWidget->setFocus();
|
|
||||||
|
|
||||||
if (!m_treeWidget->currentItem() && m_treeWidget->topLevelItemCount()) {
|
if (!m_treeWidget->currentItem() && m_treeWidget->topLevelItemCount()) {
|
||||||
m_treeWidget->setCurrentItem(m_treeWidget->topLevelItem(0), 0, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
|
m_treeWidget->setCurrentItem(m_treeWidget->topLevelItem(0), 0, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user