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
  • Loading branch information
jef-n committed Jun 8, 2016
1 parent fea82ae commit ee8e340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsmessagelogviewer.cpp
Original file line number Diff line number Diff line change
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 ee8e340

Please sign in to comment.