Skip to content
Permalink
Browse files

Fix message log dock causes havoc with other docks placed in the same…

… area

Fixes #31955, fixes #27868, fixes #39171
  • Loading branch information
nyalldawson committed Oct 6, 2020
1 parent 4465034 commit 384f6a1d9257a05eaa58942921c94f1dd4941cd3
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgisapp.cpp
@@ -1298,8 +1298,8 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
addDockWidget( Qt::BottomDockWidgetArea, mLogDock );
mLogDock->setWidget( mLogViewer );
mLogDock->hide();
connect( mMessageButton, &QAbstractButton::toggled, mLogDock, &QWidget::setVisible );
connect( mLogDock, &QDockWidget::visibilityChanged, mMessageButton, &QAbstractButton::setChecked );
connect( mMessageButton, &QAbstractButton::toggled, mLogDock, &QgsDockWidget::setUserVisible );
connect( mLogDock, &QgsDockWidget::visibilityChanged, mMessageButton, &QAbstractButton::setChecked );
connect( QgsApplication::messageLog(), static_cast < void ( QgsMessageLog::* )( bool ) >( &QgsMessageLog::messageReceived ), this, &QgisApp::toggleLogMessageIcon );
connect( mMessageButton, &QAbstractButton::toggled, this, &QgisApp::toggleLogMessageIcon );
mVectorLayerTools = new QgsGuiVectorLayerTools();
@@ -4687,7 +4687,7 @@ void QgisApp::toggleLogMessageIcon( bool hasLogMessage )

void QgisApp::openMessageLog()
{
mMessageButton->setChecked( true );
mLogDock->setUserVisible( true );
}

void QgisApp::addUserInputWidget( QWidget *widget )

0 comments on commit 384f6a1

Please sign in to comment.
You can’t perform that action at this time.