File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -744,8 +744,14 @@ private void textBoxContentName_TextChanged(object sender, EventArgs e)
744744 var current = bindingSourceContent . Current as ContentFolder ;
745745 if ( current != null && current . Name != textBoxContentName . Text )
746746 {
747- if ( ContentFolder . isWrongPath ( current . Path , catalog ) )
747+ if ( current . Path . ToLower ( ) . Contains ( ApplicationInfo . ProcessDirectory . ToLower ( ) ) )
748748 {
749+ // Block added because a succesful Update operation will empty the Open Rails folder and lose any content stored within it.
750+ MessageBox . Show ( catalog . GetString
751+ ( $ "Cannot use content from any folder which lies inside the Open Rails folder { ApplicationInfo . ProcessDirectory } \n \n ")
752+ , "Invalid content location"
753+ , MessageBoxButtons . OK
754+ , MessageBoxIcon . Error ) ;
749755 DeleteContent ( ) ;
750756 return ;
751757 }
You can’t perform that action at this time.
0 commit comments