Skip to content

Commit 9837f43

Browse files
committedNov 21, 2014
Followup to d897aa5; fix crash on Mac
1 parent 9ceb5ce commit 9837f43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/app/qgsbrowserdockwidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,9 @@ QStringList QgsBrowserDockWidget::expandedPathsList( const QModelIndex & proxyIn
811811
{
812812
QStringList paths;
813813

814+
if ( !proxyIndex.isValid() )
815+
return paths;
816+
814817
for ( int i = 0; i < mProxyModel->rowCount( proxyIndex ); i++ )
815818
{
816819
QModelIndex childProxyIndex = mProxyModel->index( i, 0, proxyIndex );

0 commit comments

Comments
 (0)
Failed to load comments.