Handle the deleting of a step marked for copy
This commit is contained in:
@@ -758,7 +758,8 @@ namespace Volian.Controls.Library
|
||||
return newFocus;
|
||||
}
|
||||
|
||||
private void HandleSqlExceptionOnDelete(System.Data.SqlClient.SqlException ex)
|
||||
//private void HandleSqlExceptionOnDelete(System.Data.SqlClient.SqlException ex)
|
||||
private void HandleSqlExceptionOnDelete(Exception ex)
|
||||
{
|
||||
if (ex.Message.Contains("has External Transitions and has no next step"))
|
||||
{
|
||||
@@ -1153,6 +1154,7 @@ namespace Volian.Controls.Library
|
||||
public void PasteSiblingBefore(int copyStartID)
|
||||
{
|
||||
ItemInfo newItemInfo = MyItemInfo.PasteSiblingBefore(copyStartID);
|
||||
if (newItemInfo.ItemID == MyItemInfo.ItemID) return;
|
||||
EditItem newEditItem = null;
|
||||
switch (_MyChildRelation)
|
||||
{
|
||||
@@ -1175,6 +1177,7 @@ namespace Volian.Controls.Library
|
||||
public void PasteSiblingAfter(int copyStartID)
|
||||
{
|
||||
ItemInfo newItemInfo = MyItemInfo.PasteSiblingAfter(copyStartID);
|
||||
if (newItemInfo.ItemID == MyItemInfo.ItemID) return;
|
||||
EditItem newEditItem = null;
|
||||
switch (_MyChildRelation)
|
||||
{
|
||||
@@ -1215,7 +1218,8 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
newItemInfo = Item.PasteReplace(MyItemInfo, copyStartID);
|
||||
}
|
||||
catch (System.Data.SqlClient.SqlException ex)
|
||||
//catch (System.Data.SqlClient.SqlException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
HandleSqlExceptionOnDelete(ex);
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user