Skip to content
Permalink
Browse files

Fixed crash in browser startup on Mac

  • Loading branch information
blazek committed Dec 1, 2014
1 parent 48edab4 commit 4fde34a723d5f30caab7b868e065e305a3347cd2
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgsbrowserdockwidget.cpp
@@ -316,7 +316,9 @@ void QgsBrowserDockWidget::showEvent( QShowEvent * e )
void QgsBrowserDockWidget::hideEvent( QHideEvent * e )
{
QgsDebugMsg( "Entered" );
saveState();
// hideEvent() may be called (Mac) before showEvent
if ( mModel )
saveState();
QDockWidget::hideEvent( e );
}

@@ -811,6 +813,9 @@ QStringList QgsBrowserDockWidget::expandedPathsList( const QModelIndex & proxyIn
{
QStringList paths;

if ( !mModel || !mProxyModel || !mBrowserView )
return paths;

for ( int i = 0; i < mProxyModel->rowCount( proxyIndex ); i++ )
{
QModelIndex childProxyIndex = mProxyModel->index( i, 0, proxyIndex );

0 comments on commit 4fde34a

Please sign in to comment.
You can’t perform that action at this time.