1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-04-29 00:03:59 -04:00

[Plugin manager] Fix window title

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

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