summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/foldernavigationwidget.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-08-13 16:18:33 +0200
committerEike Ziller <eike.ziller@qt.io>2018-08-15 12:29:44 +0000
commit4e1a3b0029ee3adcb6ef2cc0e9cec58f8bc69b63 (patch)
treebaccc5c0ddd66b426e0db3b5829a5ac78c4987bd /src/plugins/projectexplorer/foldernavigationwidget.h
parent7d5013cefd55f7edd42c685fa0ddfa2c119605aa (diff)
downloadqt-creator-4e1a3b0029ee3adcb6ef2cc0e9cec58f8bc69b63.tar.gz
File System View: Fix scroll position and bread crumb in some cases
Use a model index from the right model, and update the bread crumb, when updating the scroll position delayed, for the case where the directory for the file was not already loaded in the file system model yet. Broke with introduction of the folder vs alphabetic sorting. Task-number: QTCREATORBUG-20897 Change-Id: Ifc912184b4910ed546c0141044eead3650b98c87 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/foldernavigationwidget.h')
-rw-r--r--src/plugins/projectexplorer/foldernavigationwidget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/foldernavigationwidget.h b/src/plugins/projectexplorer/foldernavigationwidget.h
index 8f428863eb..f10f69d595 100644
--- a/src/plugins/projectexplorer/foldernavigationwidget.h
+++ b/src/plugins/projectexplorer/foldernavigationwidget.h
@@ -131,7 +131,7 @@ private:
QStringList projectsInDirectory(const QModelIndex &index) const;
void openProjectsInDirectory(const QModelIndex &index);
void createNewFolder(const QModelIndex &parent);
- void setCrumblePath(const QModelIndex &index, const QModelIndex &);
+ void setCrumblePath(const QModelIndex &index);
Core::IContext *m_context = nullptr;
Utils::NavigationTreeView *m_listView = nullptr;