summaryrefslogtreecommitdiffstats
path: root/mappingtreemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-10-27 13:39:25 +0200
committerArno <am@disconnect.de>2012-10-27 13:39:25 +0200
commit97e8c68d7a92d6ccdb5f6ead8bba0d0af58efb3b (patch)
tree9cf27100410fe74b4794927ef1171301b7a1ceb5 /mappingtreemodel.h
parentdc7cc269a4fffe43bdac2ae2dc6548fbd1e3bb5e (diff)
downloadSheMov-97e8c68d7a92d6ccdb5f6ead8bba0d0af58efb3b.tar.gz
SheMov-97e8c68d7a92d6ccdb5f6ead8bba0d0af58efb3b.tar.bz2
SheMov-97e8c68d7a92d6ccdb5f6ead8bba0d0af58efb3b.zip
Bugfixes: don't select dirs and don't crash on write settings
Only select files when archiving pics from filemanager. While at it, I noticed a crash on close when no item is selected in PicturesWidget. So check if MappingData is valid on writing settings. Best way is MappingData::isValid(), and for that I needed a explicit constructor.
Diffstat (limited to 'mappingtreemodel.h')
-rw-r--r--mappingtreemodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mappingtreemodel.h b/mappingtreemodel.h
index a4a1ae8..fa91a78 100644
--- a/mappingtreemodel.h
+++ b/mappingtreemodel.h
@@ -117,6 +117,8 @@ class MappingTreeResultModel : public SmTreeModel {
};
struct MappingData {
+ MappingData();
+ bool isValid();
int mappingId;
int parentId;
int myId;