summaryrefslogtreecommitdiffstats
path: root/smtreeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smtreeview.cpp')
-rw-r--r--smtreeview.cpp4
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);
}