|
@@ -54,7 +54,7 @@ void IndexSystemWidget::contextMenuEvent(QContextMenuEvent *event)
|
|
|
void IndexSystemWidget::setupTabWidget()
|
|
|
{
|
|
|
m_tab->clear();
|
|
|
- for (int i : m_indexList) {
|
|
|
+ for (int i : indexList()) {
|
|
|
CMindView *m = new CMindView(this);
|
|
|
ProjectManager::IndexType t = (ProjectManager::IndexType)i;
|
|
|
QString s = ProjectManager::nameOfIndexType(t);
|
|
@@ -108,7 +108,7 @@ void IndexSystemWidget::slotClearAllNodes()
|
|
|
|
|
|
void IndexSystemWidget::slotCreateRootNode()
|
|
|
{
|
|
|
- int t = m_indexList[m_tab->currentIndex()];
|
|
|
+ int t = indexList()[m_tab->currentIndex()];
|
|
|
CNodeData n = CNodeData(m_proj->id, t, 0);
|
|
|
n.name = m_proj->projectName;
|
|
|
addNode(n);
|