From 4221ce21a0c419b908529ec40b769e6e5c3fa7dc Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 17 Mar 2013 09:47:40 +0100 Subject: Fix create Folder Don't let createFolder crash b/c of wrong model. --- smdirmodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'smdirmodel.h') diff --git a/smdirmodel.h b/smdirmodel.h index d087558..620a632 100644 --- a/smdirmodel.h +++ b/smdirmodel.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -35,6 +36,7 @@ class SmDirModel : public SmTreeModel { virtual bool setData(const QModelIndex &index, const QVariant &value, int role); bool isDir(const QModelIndex &idx) const; QFileInfo fileInfo(const QModelIndex &idx) const; + QDir dir() const { return QDir(mCur); }; public slots: void setDir(const QString &dir); -- cgit v1.2.3-70-g09d2