summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qfilesystemmodel.h
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-04-20 16:49:21 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-04-21 08:21:23 (GMT)
commit292a37301950a64f211e3a2909ff64884b73e1cc (patch)
treecf21b0824ffc294b5ddefd5bb4dab55add5f936b /src/gui/dialogs/qfilesystemmodel.h
parent7d572f0b4adf33db00352d8183b1e934cee85c39 (diff)
downloadQt-292a37301950a64f211e3a2909ff64884b73e1cc.zip
Qt-292a37301950a64f211e3a2909ff64884b73e1cc.tar.gz
Qt-292a37301950a64f211e3a2909ff64884b73e1cc.tar.bz2
Fix a bug in QFileDialog sidebar when the bookmark has an hidden parent
If the bookmark in the sidebar has an hidden parent and the QFileDialog is set up to not show hidden files, then clicking on the bookmark move the current dir to root (like if the bookmark was invalid) instead of entering in the dir. The fix was to fetch the parent dir and the bookmark dir when the user select it in the sidebar. Task-number: 251321 Reviewed-by: jasplin
Diffstat (limited to 'src/gui/dialogs/qfilesystemmodel.h')
-rw-r--r--src/gui/dialogs/qfilesystemmodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/dialogs/qfilesystemmodel.h b/src/gui/dialogs/qfilesystemmodel.h
index 52ecaf9..995268b 100644
--- a/src/gui/dialogs/qfilesystemmodel.h
+++ b/src/gui/dialogs/qfilesystemmodel.h
@@ -158,6 +158,8 @@ private:
Q_PRIVATE_SLOT(d_func(), void _q_performDelayedSort())
Q_PRIVATE_SLOT(d_func(), void _q_fileSystemChanged(const QString &path, const QList<QPair<QString, QFileInfo> > &))
Q_PRIVATE_SLOT(d_func(), void _q_resolvedName(const QString &fileName, const QString &resolvedName))
+
+ friend class QFileDialogPrivate;
};
inline bool QFileSystemModel::rmdir(const QModelIndex &aindex) const