Skip to content

Commit

Permalink
avoid closing the last tab of the message log viewer
Browse files Browse the repository at this point in the history
(cherry picked from commit ee8e340)
  • Loading branch information
jef-n committed Jun 26, 2016
1 parent a58e710 commit fa26ca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsmessagelogviewer.cpp
Expand Up @@ -78,5 +78,6 @@ void QgsMessageLogViewer::logMessage( QString message, QString tag, QgsMessageLo

void QgsMessageLogViewer::closeTab( int index )
{
tabWidget->removeTab( index );
if ( tabWidget->count() > 1 )
tabWidget->removeTab( index );
}

0 comments on commit fa26ca1

Please sign in to comment.