mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-01 17:19:05 -06:00
Prevent accidentally "checking" the folder when a folder exists with the same name as an asset (closes #2154)
This commit is contained in:
@@ -106,8 +106,8 @@ namespace {
|
||||
for (int r = 0; r < nRows; r++) {
|
||||
QModelIndex idx = model.index(r, 0, parent);
|
||||
std::string assetName = model.name(idx).toStdString();
|
||||
|
||||
if (path == assetName) {
|
||||
// Need to check if it actually is an asset to prevent isse #2154
|
||||
if (model.isAsset(idx) && path == assetName) {
|
||||
foundFileMatch = true;
|
||||
model.setChecked(idx, true);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user