mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
Fix a bug in commonRootPath logic
This commit is contained in:
parent
c0704a65f3
commit
a8fb4469b4
@ -110,7 +110,7 @@ QString RiaFilePathTools::commonRootPath(const QStringList& paths)
|
||||
{
|
||||
if (i > 0 && (root[i-1] == '/' || root[i-1] == '\\')) iDir = i;
|
||||
|
||||
if (root[i] != item[i])
|
||||
if (root[i] != item[i] || i == root.length() - 1)
|
||||
{
|
||||
root.truncate(std::min(i, iDir));
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user