Changeset View
Changeset View
Standalone View
Standalone View
src/dolphintabwidget.cpp
| Context not available. | |||||
| 138 | KUrlNavigator* navigator = newActiveViewContainer->urlNavigator(); | 138 | KUrlNavigator* navigator = newActiveViewContainer->urlNavigator(); | ||
|---|---|---|---|---|---|
| 139 | navigator->setUrlEditable(isUrlEditable); | 139 | navigator->setUrlEditable(isUrlEditable); | ||
| 140 | 140 | | |||
| 141 | if (isUrlEditable) { | 141 | // Always focus the new tab's view | ||
| 142 | // If a new tab is opened and the URL is editable, assure that | 142 | currentTabPage()->activeViewContainer()->view()->setFocus(); | ||
| 143 | // the user can edit the URL without manually setting the focus | | |||
| 144 | navigator->setFocus(); | | |||
| 145 | } | | |||
| 146 | } | 143 | } | ||
| 147 | 144 | | |||
| 148 | void DolphinTabWidget::openNewActivatedTab(const QUrl& primaryUrl, const QUrl& secondaryUrl) | 145 | void DolphinTabWidget::openNewActivatedTab(const QUrl& primaryUrl, const QUrl& secondaryUrl) | ||
| Context not available. | |||||