Directory tree view now updates to reflect changes when moving/renaming folders

This commit is contained in:
Aruki
2017-07-25 04:02:48 -06:00
parent 5e79d88bb8
commit ca40c26154
13 changed files with 290 additions and 134 deletions

View File

@@ -33,6 +33,9 @@ public:
protected:
void DoMove(const TString& rkPath, bool IsAutoDir)
{
TString ResName = mpEntry->CookedAssetPath(true).GetFileName();
gpEdApp->ResourceBrowser()->ResourceAboutToBeMoved(mpEntry, TO_QSTRING(rkPath + ResName));
CVirtualDirectory *pOldDir = mpEntry->Directory();
bool Success = mpEntry->Move(rkPath, IsAutoDir);
ASSERT(Success); // todo better error handling