[Plugin manager] Fix window title

This commit is contained in:
Borys Jurgiel 2017-11-06 11:03:44 +01:00
parent ae33b58ac7
commit 17aa88cdec

View File

@ -1572,7 +1572,7 @@ void QgsPluginManager::updateWindowTitle()
if ( curitem )
{
QString title = QStringLiteral( "%1 | %2" ).arg( tr( "Plugins" ), curitem->text() );
if ( mOptionsListWidget->currentRow() < mOptionsListWidget->count() - 1 && mModelPlugins )
if ( mOptionsListWidget->currentRow() < mOptionsListWidget->count() - 2 && mModelPlugins )
{
// if it's not the Settings tab, add the plugin count
title += QStringLiteral( " (%3)" ).arg( mModelProxy->countWithCurrentStatus() );