Skip to content

DolphinViewContainer: set searchPath on redirect, check for connected urlNavigator

Akseli Lahtinen requested to merge work/akselmo/set-searchpath-on-redirect into master

This fixes a dolphin crash if tab with a search box open gets its path changed while its not active.

For example, if user has two tabs foo and foo/bar. foo/bar tab has search open. User changes to foo tab, and renames bar to baz. This would cause a crash, since there is no connected urlNavigator to this view. I also noticed the searchPath is still the old directory.

This patch adds a guard for the m_urlNavigatorConnected->setLocation, and makes sure teh searchPath is set to the correct folder.

BUG:496387

Edited by Akseli Lahtinen

Merge request reports

Loading