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.
This commit is contained in:
con
2009-08-31 12:30:54 +02:00
parent c7a48c67c0
commit dea7e36a13
7 changed files with 9 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ FolderNavigationWidget::FolderNavigationWidget(QWidget *parent)
m_title(new QLabel(this)), m_title(new QLabel(this)),
m_autoSync(false) m_autoSync(false)
{ {
m_dirModel->setResolveSymlinks(false);
m_dirModel->setFilter(QDir::Dirs | QDir::Files | QDir::Drives | QDir::Readable | QDir::Writable m_dirModel->setFilter(QDir::Dirs | QDir::Files | QDir::Drives | QDir::Readable | QDir::Writable
| QDir::Executable | QDir::Hidden); | QDir::Executable | QDir::Hidden);
m_dirModel->setSorting(QDir::Name | QDir::DirsFirst); m_dirModel->setSorting(QDir::Name | QDir::DirsFirst);

View File

@@ -0,0 +1,2 @@
Interesting to test is e.g.
* if opening one of the symbolic links opens the link target (bad), or the symbolic link (good)

View File

@@ -0,0 +1,4 @@
TEMPLATE = app
TARGET = symbolic
SOURCES += symbolic_link_one.cpp symbolic_link_two.cpp

View File

@@ -0,0 +1 @@
11111

View File

@@ -0,0 +1 @@
22222