fixed entering path from the addressbar
[case] / src / filelist.cpp
index 3d9c8c4..9b52332 100644 (file)
@@ -23,6 +23,8 @@
 #include <hildon-mime.h>
 #include <dbus/dbus.h>
 
+#include "fileoperator.h"
+
 
 FileList::FileList(QWidget *parent) :
     QListView(parent),
@@ -58,6 +60,7 @@ const QString FileList::path() const {
 
 
 bool FileList::changePath(QString path) {
+    path = FileOperator::unwindPath(path);
     QDir dir(fileSystemModel->rootPath());
     if (dir.cd(path)) {
         setRootIndex(fileSystemModel->setRootPath(dir.absolutePath()));