Commit 3184d0e6 authored by Alexander Bock's avatar Alexander Bock
Browse files

Prevent accidentally "checking" the folder when a folder exists with the same...

Prevent accidentally "checking" the folder when a folder exists with the same name as an asset (closes #2154)
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment