Skip to content

Commit 72676c7

Browse files
author
SlavaRa
committed
Cleanup
1 parent 92e1546 commit 72676c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

External/Plugins/ProjectManager/PluginUI.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,17 +230,16 @@ private void tree_AfterLabelEdit(Object sender, NodeLabelEditEventArgs e)
230230
newName = Path.Combine(project.Directory, label);
231231
newName = Path.ChangeExtension(newName, Path.GetExtension(oldName));
232232
}
233-
catch (Exception exception)
233+
catch (Exception)
234234
{
235235
e.CancelEdit = true;
236236
isEditingLabel = false;
237-
ErrorManager.ShowError(exception);
238237
return;
239238
}
240239
if (Rename(oldName, newName))
241240
{
242241
PluginBase.MainForm.OpenEditableDocument(newName);
243-
File.Delete(oldName); //slavara: because the old file remains after renaming
242+
File.Delete(oldName);
244243
}
245244
else e.CancelEdit = true;
246245
}

0 commit comments

Comments
 (0)