Commit 64e8b8a0 authored by Daniel Teske's avatar Daniel Teske

Fix crash in FolderNavigationWidget

Introduced in 1ed12d39

Change-Id: I623e081a6abc80bd6926daf55fc18ab0cb400863
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: default avatarBogDan Vatra <bogdan@kde.org>
parent bc46e179
......@@ -211,6 +211,9 @@ void FolderNavigationWidget::setAutoSynchronization(bool sync)
void FolderNavigationWidget::setCurrentFile(Core::IEditor *editor)
{
if (!editor)
return;
const QString filePath = editor->document()->filePath().toString();
// Try to find directory of current file
bool pathOpened = false;
......
Markdown is supported
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