File tree 3 files changed +28
-4
lines changed
3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -3341,15 +3341,32 @@ FileTreeTable::RestoreDirState
3341
3341
}
3342
3342
3343
3343
const JSize count = itsFileTreeList->GetItemCount (); // changes after Open()
3344
+
3345
+ bool found = false ;
3344
3346
for (JIndex j=1 ; j<=count; j++)
3345
3347
{
3346
- const JString& n = ( itsFileTreeList->GetDirEntry (j) )->GetFullName ();
3347
- if (JSameDirEntry (n, full) )
3348
+ const JString& n = itsFileTreeList->GetDirEntry (j)->GetFullName ();
3349
+ if (n == full)
3348
3350
{
3349
3351
itsFileTreeList->Open (j);
3352
+ found = true ;
3350
3353
break ;
3351
3354
}
3352
3355
}
3356
+
3357
+ if (!found)
3358
+ {
3359
+ for (JIndex j=1 ; j<=count; j++)
3360
+ {
3361
+ const JString& n = itsFileTreeList->GetDirEntry (j)->GetFullName ();
3362
+ if (JSameDirEntry (n, full))
3363
+ {
3364
+ itsFileTreeList->Open (j);
3365
+ found = true ;
3366
+ break ;
3367
+ }
3368
+ }
3369
+ }
3353
3370
}
3354
3371
}
3355
3372
@@ -3373,7 +3390,7 @@ FileTreeTable::SaveDirState
3373
3390
if (itsFileTreeList->IsOpen (i))
3374
3391
{
3375
3392
names.Append (JConvertToRelativePath (
3376
- ( itsFileTreeList->GetDirEntry (i) )->GetFullName (), basePath));
3393
+ itsFileTreeList->GetDirEntry (i)->GetFullName (), basePath));
3377
3394
}
3378
3395
}
3379
3396
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ <h1>System G: Changes from previous versions</h1>
13
13
< p > Please submit all suggestions and bugs via < a href ="https://github.com/jafl/jx_application_framework/issues "> github</ a > .</ p >
14
14
< hr >
15
15
16
+ < h2 > 3.0.4</ h2 >
17
+
18
+ < ul >
19
+ < li > Fixed edge case related to symlinks when restoring state of open sub-directories.</ li >
20
+ </ ul >
21
+
22
+
16
23
< h2 > 3.0.3</ h2 >
17
24
18
25
< ul >
Original file line number Diff line number Diff line change 210
210
F
211
211
# build settings
212
212
1
213
- T
213
+ F
214
214
"systemg"
215
215
"${LIB_DEPS}"
216
216
"make -k all"
You can’t perform that action at this time.
0 commit comments