Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
4f4e3d39
Commit
4f4e3d39
authored
Nov 08, 2020
by
Méven Car
Browse files
PlacesPanel: activating a place does not select its previously selected children
BUG: 421347
parent
20848147
Pipeline
#58393
passed with stage
in 4 minutes and 46 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/dolphinmainwindow.cpp
View file @
4f4e3d39
...
...
@@ -1243,7 +1243,9 @@ void DolphinMainWindow::slotPlaceActivated(const QUrl& url)
// which had been unmounted earlier, see https://bugs.kde.org/show_bug.cgi?id=161385.
reloadView
();
}
else
{
view
->
disableUrlNavigatorSelectionRequests
();
changeUrl
(
url
);
view
->
enableUrlNavigatorSelectionRequests
();
}
}
...
...
src/dolphinviewcontainer.cpp
View file @
4f4e3d39
...
...
@@ -727,6 +727,18 @@ void DolphinViewContainer::slotUrlSelectionRequested(const QUrl& url)
m_view
->
markUrlAsCurrent
(
url
);
// makes the item scroll into view
}
void
DolphinViewContainer
::
disableUrlNavigatorSelectionRequests
()
{
disconnect
(
m_urlNavigator
.
get
(),
&
KUrlNavigator
::
urlSelectionRequested
,
this
,
&
DolphinViewContainer
::
slotUrlSelectionRequested
);
}
void
DolphinViewContainer
::
enableUrlNavigatorSelectionRequests
()
{
connect
(
m_urlNavigator
.
get
(),
&
KUrlNavigator
::
urlSelectionRequested
,
this
,
&
DolphinViewContainer
::
slotUrlSelectionRequested
);
}
void
DolphinViewContainer
::
redirect
(
const
QUrl
&
oldUrl
,
const
QUrl
&
newUrl
)
{
Q_UNUSED
(
oldUrl
)
...
...
src/dolphinviewcontainer.h
View file @
4f4e3d39
...
...
@@ -174,6 +174,15 @@ public:
*/
QString
caption
()
const
;
/**
* Disable/enable the behavior of "select child when moving to parent folder"
* offered by KUrlNavigator.
*
* See KUrlNavigator::urlSelectionRequested
*/
void
disableUrlNavigatorSelectionRequests
();
void
enableUrlNavigatorSelectionRequests
();
public
Q_SLOTS
:
/**
* Sets the current active URL, where all actions are applied. The
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment