Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
aed760f2
Commit
aed760f2
authored
Sep 17, 2022
by
Christoph Cullmann
🍨
Browse files
avoid that we trigger setCurrentItem with invalid url, will lead to warning
parent
c253ebc2
Pipeline
#233671
passed with stage
in 7 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/filebrowser/katefilebrowser.cpp
View file @
aed760f2
...
...
@@ -128,7 +128,9 @@ KateFileBrowser::KateFileBrowser(KTextEditor::MainWindow *mainWindow, QWidget *p
// Ensure highlight current document also works after directory change
connect
(
m_dirOperator
,
&
KDirOperator
::
finishedLoading
,
this
,
[
this
]
{
if
(
m_highlightCurrentFile
->
isChecked
()
&&
m_autoSyncFolder
->
isChecked
())
{
m_dirOperator
->
setCurrentItem
(
activeDocumentUrl
());
if
(
const
auto
u
=
activeDocumentUrl
();
u
.
isValid
())
{
m_dirOperator
->
setCurrentItem
(
u
);
}
}
});
}
...
...
Christoph Cullmann
🍨
@cullmann
mentioned in commit
b2d94025
·
Sep 18, 2022
mentioned in commit
b2d94025
mentioned in commit b2d940254a7ca1a93db4937dcd916f83ccca410c
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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