Skip to content
Snippets Groups Projects
Commit dea7e36a authored by con's avatar con
Browse files

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.
parent c7a48c67
No related branches found
No related tags found
No related merge requests found
......@@ -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
11111
\ No newline at end of file
22222
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment