forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user