mainwindow.cpp
changeset 534 32b71ba642aa
parent 531 be24af55da40
child 537 16d3598f611f
     1.1 --- a/mainwindow.cpp	Fri Jun 29 09:43:54 2007 +0000
     1.2 +++ b/mainwindow.cpp	Fri Jun 29 15:12:04 2007 +0000
     1.3 @@ -2892,6 +2892,7 @@
     1.4  		BranchObj *bo=(BranchObj*)me->getSelection();
     1.5  		BranchObj *newbo=me->addNewBranch(0);
     1.6  
     1.7 +		prevSelection=bo->getSelectString();
     1.8  		if (newbo) 
     1.9  			me->select (newbo->getSelectString());
    1.10  		else
    1.11 @@ -2899,10 +2900,19 @@
    1.12  
    1.13  		if (actionSettingsAutoEdit->isOn())
    1.14  		{
    1.15 -			if (!actionSettingsAutoSelectHeading->isOn())
    1.16 -				prevSelection=bo->getSelectString();
    1.17  			editHeading();
    1.18 +			return;
    1.19 +		}	
    1.20 +			/*
    1.21 +		if (!actionSettingsAutoSelectHeading->isOn())
    1.22 +			me->select(bo->getSelectString());
    1.23 +			*/	
    1.24 +		if (!prevSelection.isEmpty()) 
    1.25 +		{
    1.26 +			me->select(prevSelection);
    1.27 +			prevSelection="";
    1.28  		}
    1.29 +
    1.30  	}	
    1.31  }
    1.32