From c819d13523e4cfd143b67499109d0c7f076a03f7 Mon Sep 17 00:00:00 2001 From: Nathan Woodrow Date: Sun, 30 Jul 2017 21:02:13 +1000 Subject: [PATCH] Hide profiles section if there is only one user profile --- src/app/qgisapp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index a7e08f28a44..c225274f7f6 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -2343,6 +2343,11 @@ void QgisApp::refreshProfileMenu() userProfileManager()->loadUserProfile( name ); } ); } + + if ( userProfileManager()->allProfiles().count() == 1 ) + { + profileSection->setVisible( false ); + } } void QgisApp::createProfileMenu()