Commit d40ba7ea authored by con's avatar con

Don't follow symbolic links in the file system view.

If you double-click on a file, this file should be opened, not its link
target.
(cherry picked from commit dea7e36a)
parent d35e02b8
......@@ -79,6 +79,7 @@ FolderNavigationWidget::FolderNavigationWidget(QWidget *parent)
m_title(new QLabel(this)),
m_autoSync(false)
{
m_dirModel->setResolveSymlinks(false);
m_dirModel->setFilter(QDir::Dirs | QDir::Files | QDir::Drives | QDir::Readable | QDir::Writable
| QDir::Executable | QDir::Hidden);
m_dirModel->setSorting(QDir::Name | QDir::DirsFirst);
......
Interesting to test is e.g.
* if opening one of the symbolic links opens the link target (bad), or the symbolic link (good)
TEMPLATE = app
TARGET = symbolic
SOURCES += symbolic_link_one.cpp symbolic_link_two.cpp
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