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:
mae
2009-05-06 16:22:29 +02:00
parent 591c186371
commit b82673c982

View File

@@ -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);
} }