Skip to content
Permalink
Browse files

Fix QFileSystemWatcher debug warning on startup

  • Loading branch information
nyalldawson committed Aug 31, 2017
1 parent 15a48df commit 1037d4752df51aefa3b8dec50664e5fddf6a6ad3
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +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 );
}

0 comments on commit 1037d47

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