mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix a bug in commonRootPath logic
This commit is contained in:
@@ -110,7 +110,7 @@ QString RiaFilePathTools::commonRootPath(const QStringList& paths)
|
|||||||
{
|
{
|
||||||
if (i > 0 && (root[i-1] == '/' || root[i-1] == '\\')) iDir = i;
|
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));
|
root.truncate(std::min(i, iDir));
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user