diff options
author | Arno <am@disconnect.de> | 2013-04-06 06:12:00 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-04-06 06:12:00 +0200 |
commit | 511d1f9cd61586336014c55e32f67872e5e4ee10 (patch) | |
tree | 1b1b7b15b5aedbcb97438e872eb813b1186455a1 /smtreeview.cpp | |
parent | 17a14b44b97af461eef2ec4f7da8f762588f1d32 (diff) | |
download | SheMov-511d1f9cd61586336014c55e32f67872e5e4ee10.tar.gz SheMov-511d1f9cd61586336014c55e32f67872e5e4ee10.tar.bz2 SheMov-511d1f9cd61586336014c55e32f67872e5e4ee10.zip |
Put duration and size in one Field (SmDirModel)
Consolidate duration and size in one Field, like in the archive, to be
consistent. Also rename the Role and Field accordingly.
Diffstat (limited to 'smtreeview.cpp')
-rw-r--r-- | smtreeview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/smtreeview.cpp b/smtreeview.cpp index feb64bf..36d7c07 100644 --- a/smtreeview.cpp +++ b/smtreeview.cpp @@ -28,6 +28,10 @@ void SmTreeView::readHeaderConfig(){ headerActions.insert(a->data().toInt(), a); } for(int i = 0; i < hv->count(); ++i){ + // don't crash if header count is smaller than saved... + if(i >= mHeaderGroup->actions().count()){ + continue; + } if(!hv->isSectionHidden(i)){ headerActions.value(i)->setChecked(true); } |