diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 1de0c877..7b2ebeac 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -1170,7 +1170,8 @@ namespace PckStudio private void cloneFileToolStripMenuItem_Click(object sender, EventArgs e) { TreeNode node = treeViewMain.SelectedNode; - if (node == null) return; + if (node == null || !node.IsTagOfType()) + return; string path = node.FullPath; using TextPrompt diag = new TextPrompt(node.Tag is null ? Path.GetFileName(node.FullPath) : node.FullPath);