Commit 553f1d82 authored by loh.tar's avatar loh.tar Committed by Christoph Cullmann
Browse files

Move highlight code to betterplace, avoid fetch url twice

parent 60950f52
......@@ -329,6 +329,10 @@ void KateFileBrowser::setActiveDocumentDir()
QUrl u = activeDocumentUrl();
if (!u.isEmpty()) {
setDir(KIO::upUrl(u));
if (m_autoSyncFolder->isChecked()) {
// Highlight current document
m_dirOperator->setCurrentItem(u);
}
}
}
......@@ -336,8 +340,6 @@ void KateFileBrowser::autoSyncFolder()
{
if (m_autoSyncFolder->isChecked()) {
setActiveDocumentDir();
// Highlight current document
m_dirOperator->setCurrentItem(activeDocumentUrl());
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment