Skip to content

Commit

Permalink
fixed ziplayertest, b843f81 follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Jan 21, 2015
1 parent c1f60e3 commit 0cdfcd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsdataitem.cpp
Expand Up @@ -1329,6 +1329,8 @@ QVector<QgsDataItem*> QgsZipItem::createChildren()
if ( item )
{
QgsDebugMsgLevel( "loaded item", 3 );
// the item comes with zipped file name, set the name to relative path within zip file
item->setName( fileName );
children.append( item );
break;
}
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsdataitem.h
Expand Up @@ -144,6 +144,7 @@ class CORE_EXPORT QgsDataItem : public QObject
QVector<QgsDataItem*> children() const { return mChildren; }
virtual QIcon icon();
QString name() const { return mName; }
void setName( const QString &name ) { mName = name; }
QString path() const { return mPath; }
void setPath( const QString &path ) { mPath = path; }
//! Create path component replacing path separators
Expand Down

0 comments on commit 0cdfcd1

Please sign in to comment.