Browse files

Added edit triggers to prevent data column from editing. Removed extr…

…a S_UpdateList as it will be called by the event
  • Loading branch information...
1 parent 2921cc3 commit a1a010df993501b4e8dfd493039bd4d5f4caaea8 @Detegr committed Feb 9, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 editor.cpp
View
3 editor.cpp
@@ -401,6 +401,7 @@ void C_Editor::S_OpenDataDialog(const QModelIndex& i)
{
if(i.column() == 2) // Data column
{
+ m_List->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_DataEditor->setData(i, m_Editor->m_ActivePoly->M_Vertex(i.row()).M_GetData());
m_DataEditor->setVisible(true);
}
@@ -413,5 +414,5 @@ void C_Editor::S_SetData()
QStandardItem* item=m_Model->itemFromIndex(m_DataEditor->getModelIndex());
if(data.length()) item->setText("*");
else item->setText("");
- S_UpdateList(item);
+ m_List->setEditTriggers(QAbstractItemView::DoubleClicked);
}

0 comments on commit a1a010d

Please sign in to comment.