Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix QFileSystemWatcher debug warning on startup
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+1
−1
src/app/qgisapp.cpp
-
+1
−1
src/core/qgsuserprofilemanager.cpp
|
@@ -652,7 +652,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh |
|
|
QgsRuntimeProfiler *profiler = QgsApplication::profiler(); |
|
|
|
|
|
startProfile( QStringLiteral( "User profile manager" ) ); |
|
|
mUserProfileManager = new QgsUserProfileManager( "", this ); |
|
|
mUserProfileManager = new QgsUserProfileManager( QString(), this ); |
|
|
mUserProfileManager->setRootLocation( rootProfileLocation ); |
|
|
mUserProfileManager->setActiveUserProfile( activeProfile ); |
|
|
connect( mUserProfileManager, &QgsUserProfileManager::profilesChanged, this, &QgisApp::refreshProfileMenu ); |
|
|
|
@@ -67,7 +67,7 @@ void QgsUserProfileManager::setRootLocation( const QString &rootProfileLocation |
|
|
mWatcher->removePaths( mWatcher->directories() ); |
|
|
} |
|
|
|
|
|
if ( QDir( mRootProfilePath ).exists() ) |
|
|
if ( !mRootProfilePath.isEmpty() && QDir( mRootProfilePath ).exists() ) |
|
|
{ |
|
|
mWatcher->addPath( mRootProfilePath ); |
|
|
} |
|
|