Skip to content

Commit

Permalink
[plugin manager] fix QGIS startup crash (fixes #16439) (#4360)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and timlinux committed Apr 12, 2017
1 parent c4ad950 commit 40dac8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -1536,7 +1536,7 @@ void QgsPluginManager::updateWindowTitle()
if ( curitem )
{
QString title = QStringLiteral( "%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 += QStringLiteral( " (%3)" ).arg( mModelProxy->countWithCurrentStatus() );
Expand Down

0 comments on commit 40dac8f

Please sign in to comment.