Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » TheIde and Delete package file/topic
TheIde and Delete package file/topic [message #26302] Fri, 23 April 2010 00:44 Go to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello all

Now the packages can have files or Topic folders.

By my mistake I have put few times a folder instead of a file and trying to delete it all the folder has been deleted Sad

The code in TheIde is in UppWspc.cpp:

void WorkspaceWork::DelFile()
{
	if(!filelist.IsCursor() || filelist[fileindex[filelist.GetCursor()]].isdir) return;
	String file = GetActiveFilePath();
	if(IsFolder(file)) {
		if(!PromptYesNo("Remove the topic group and discard ALL topics?")) return;
		RemoveFile();
		DeleteFolderDeep(file);
	}
	else {
		if(!PromptYesNo("Remove the file from package and discard it ?")) return;
		RemoveFile();
		::DeleteFile(file);
	}
}


I recognize it has been my fault but could it be possible to soften the Delete instead of using a DeleteFolderDeep()?, like:

- Checking that, if it is a folder, it has to have .tpp extension
- Copying the folder to Recycle Bin



Best regards
IƱaki
 
Read Message
Read Message
Read Message
Previous Topic: TheIDE hangs on "Show svn history of file"
Next Topic: gcc441 + uldar produces a crashing executable
Goto Forum:
  


Current Time: Thu May 09 01:24:13 CEST 2024

Total time taken to generate the page: 0.01934 seconds