selection.cpp
changeset 732 b77b56f707f1
parent 729 7ddbe3fa34a1
child 735 84ae10f6e3a3
     1.1 --- a/selection.cpp	Wed Dec 10 13:10:35 2008 +0000
     1.2 +++ b/selection.cpp	Mon Jan 05 16:31:38 2009 +0000
     1.3 @@ -21,7 +21,6 @@
     1.4  void Selection::setModel (VymModel *m)
     1.5  {
     1.6  	model=m;
     1.7 -	selModel=model->getSelectionModel();
     1.8  }
     1.9  
    1.10  void Selection::copy(const Selection &other)
    1.11 @@ -188,7 +187,7 @@
    1.12  
    1.13  QModelIndex Selection::getBranchIndex()
    1.14  {
    1.15 -	return selModel->selectedIndexes().first();	// TODO no multiselections yet
    1.16 +	return model->getSelectionModel()->selectedIndexes().first();	// TODO no multiselections yet
    1.17  
    1.18  }
    1.19