Skip to content

Commit

Permalink
fix qgis startup crash with plugin manager (#4372)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Apr 19, 2017
1 parent 323af15 commit ca40e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -1461,7 +1461,7 @@ void QgsPluginManager::updateWindowTitle()
if ( curitem )
{
QString title = QString( "%1 | %2" ).arg( tr( "Plugins" ), curitem->text() );
if ( mOptionsListWidget->currentRow() < mOptionsListWidget->count() - 1 )
if ( mOptionsListWidget->currentRow() < mOptionsListWidget->count() - 1 && mModelPlugins )
{
// if it's not the Settings tab, add the plugin count
title += QString( " (%3)" ).arg( mModelProxy->countWithCurrentStatus() );
Expand Down

0 comments on commit ca40e11

Please sign in to comment.