@@ -768,7 +768,7 @@ QVector<QgsDataItem*> QgsDirectoryItem::createChildren()
768
768
QString subdirPath = dir.absoluteFilePath ( subdir );
769
769
QgsDebugMsgLevel ( QString ( " creating subdir: %1" ).arg ( subdirPath ), 2 );
770
770
771
- QString path = mPath + " /" + subdir; // may differ from subdirPath
771
+ QString path = mDirPath + " /" + subdir; // may differ from subdirPath
Collapse comment Comment on line R771
This is not correct, child must get path created from mPath not from mDirPath. Reverted in 74e2abd . Unfortunately I could not reproduce the crash reported in the issue 11871 and fix that.
Code has comments. Press enter to view. 772
772
QgsDirectoryItem *item = new QgsDirectoryItem ( this , subdir, subdirPath, path );
773
773
// propagate signals up to top
774
774
@@ -1443,7 +1443,7 @@ QgsDataItem* QgsZipItem::itemFromPath( QgsDataItem* parent, QString dirPath, QSt
1443
1443
return 0 ;
1444
1444
}
1445
1445
1446
- const QStringList & QgsZipItem::getZipFileList ()
1446
+ const QStringList &QgsZipItem::getZipFileList ()
1447
1447
{
1448
1448
if ( ! mZipFileList .isEmpty () )
1449
1449
return mZipFileList ;
@@ -1452,7 +1452,7 @@ const QStringList & QgsZipItem::getZipFileList()
1452
1452
QSettings settings;
1453
1453
QString scanZipSetting = settings.value ( " /qgis/scanZipInBrowser2" , " basic" ).toString ();
1454
1454
1455
- QgsDebugMsgLevel ( QString ( " mFIlePath = %1 name= %2 scanZipSetting= %3 vsiPrefix= %4" ).arg ( mFilePath ).arg ( name () ).arg ( scanZipSetting ).arg ( mVsiPrefix ), 3 );
1455
+ QgsDebugMsgLevel ( QString ( " mFilePath = %1 name= %2 scanZipSetting= %3 vsiPrefix= %4" ).arg ( mFilePath ).arg ( name () ).arg ( scanZipSetting ).arg ( mVsiPrefix ), 3 );
1456
1456
1457
1457
// if scanZipBrowser == no: skip to the next file
1458
1458
if ( scanZipSetting == " no" )
@@ -1461,7 +1461,7 @@ const QStringList & QgsZipItem::getZipFileList()
1461
1461
}
1462
1462
1463
1463
// get list of files inside zip file
1464
- QgsDebugMsgLevel ( QString ( " Open file %1 with gdal vsi" ).arg ( mVsiPrefix + path () ), 3 );
1464
+ QgsDebugMsgLevel ( QString ( " Open file %1 with gdal vsi" ).arg ( mVsiPrefix + mFilePath ), 3 );
1465
1465
char **papszSiblingFiles = VSIReadDirRecursive1 ( QString ( mVsiPrefix + mFilePath ).toLocal8Bit ().constData () );
1466
1466
if ( papszSiblingFiles )
1467
1467
{
0 commit comments