Skip to content
Permalink
Browse files

Correctly hookup dock visibility action

  • Loading branch information
nyalldawson committed Mar 11, 2020
1 parent 92b2574 commit f58e465905b745da689c4802ca6f7547e56c6003
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -1157,10 +1157,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
mTemporalControllerWidget->setObjectName( QStringLiteral( "Temporal Controller" ) );
addDockWidget( Qt::BottomDockWidgetArea, mTemporalControllerWidget );
mTemporalControllerWidget->hide();
mTemporalControllerWidget->setToggleVisibilityAction( mActionTemporalController );

mMapCanvas->setTemporalController( mTemporalControllerWidget->temporalController() );

connect( mActionTemporalController, &QAction::triggered, this, [this] { this->mTemporalControllerWidget->show(); } );

QgsGui::instance()->dataItemGuiProviderRegistry()->addProvider( new QgsAppDirectoryItemGuiProvider() );
QgsGui::instance()->dataItemGuiProviderRegistry()->addProvider( new QgsProjectHomeItemGuiProvider() );

0 comments on commit f58e465

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