Skip to content

Commit

Permalink
Correctly hookup dock visibility action
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 92b2574 commit f58e465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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() );
Expand Down

0 comments on commit f58e465

Please sign in to comment.