Fix bread crumb directly after switching to file system view

We need to set up all connections before syncing

Change-Id: Id1da237b6c3b5f27006ec4cd4a4dd47689c5abd9
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Eike Ziller
2017-11-17 15:25:16 +01:00
parent 20491b5160
commit 93bb5081ed

View File

@@ -186,7 +186,6 @@ FolderNavigationWidget::FolderNavigationWidget(QWidget *parent) : QWidget(parent
m_toggleSync->setIcon(Utils::Icons::LINK.icon());
m_toggleSync->setCheckable(true);
m_toggleSync->setToolTip(tr("Synchronize with Editor"));
setAutoSynchronization(true);
// connections
connect(m_listView, &QAbstractItemView::activated,
@@ -223,6 +222,8 @@ FolderNavigationWidget::FolderNavigationWidget(QWidget *parent) : QWidget(parent
if (!isChildOf(fileIndex, rootIndex))
selectFile(directory);
});
setAutoSynchronization(true);
}
void FolderNavigationWidget::toggleAutoSynchronization()