Skip to content
Permalink
Browse files

[ui] fix toggle panel visibility action

Prior to this fix, the action would have to be triggered
twice before panels were actually hidden.
  • Loading branch information
nirvn committed Dec 15, 2017
1 parent a0ce648 commit 4f570cef9c7a282b3f4ab7a3a7606f6c3681095b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -6186,8 +6186,8 @@ void QgisApp::togglePanelsVisibility()
{
QgsSettings settings;

QStringList docksTitle = settings.value( QStringLiteral( "UI/hiddenDocksTitle" ), QString() ).toStringList();
QStringList docksActive = settings.value( QStringLiteral( "UI/hiddenDocksActive" ), QString() ).toStringList();
QStringList docksTitle = settings.value( QStringLiteral( "UI/hiddenDocksTitle" ), QStringList() ).toStringList();
QStringList docksActive = settings.value( QStringLiteral( "UI/hiddenDocksActive" ), QStringList() ).toStringList();

QList<QDockWidget *> docks = findChildren<QDockWidget *>();
QList<QTabBar *> tabBars = findChildren<QTabBar *>();

0 comments on commit 4f570ce

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