q55x8x / Peronality-Creator

Sort of DevEnvironment for teaseAI personalities
4 stars 1 forks source link

Renaming a folder with an opened file in it bugs the tab of the file that is open #36

Closed q55x8x closed 9 years ago

q55x8x commented 9 years ago

screenshot This actually allows to open "the same" file twice as their paths don't match anymore strangely enough saving in the old tab will write the changes into the correct file located in the moved directory.

Another strange behavior by this is that the unsaved changes marker only will be set in the new tab, after saving in the NEW tab which shouldn't be savable at least by GUI concerns the asterisk gets removed from the OLD tab and we have 2 different saved versions of "the same" file open at once :confused: :confounded: :question:

new Tab: newTab

old Tab oldTab

q55x8x commented 9 years ago

Just gone through the code and realized that this bug should have been fixed by fixing #35. Sadly I dont have the possibility to try this but I will be back at my place tomorrow and investigate this topic further.

EDIT:

Bug still persists even after fixing #35

q55x8x commented 9 years ago

Fix found:

Directory.FullName always already returns its FullName + the appending \

In frmMain.cs we appended another : (see: cc80e9c145df9e0235dee28bc1e2afb5dd077bb3)

When constructing another file from that the double \ were ignored and the file was successfully constructed. But in our opened Tabs list we kept the double \ .