Skip to content

Commit 1037d47

Browse files
committedAug 31, 2017
Fix QFileSystemWatcher debug warning on startup
1 parent 15a48df commit 1037d47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
652652
QgsRuntimeProfiler *profiler = QgsApplication::profiler();
653653

654654
startProfile( QStringLiteral( "User profile manager" ) );
655-
mUserProfileManager = new QgsUserProfileManager( "", this );
655+
mUserProfileManager = new QgsUserProfileManager( QString(), this );
656656
mUserProfileManager->setRootLocation( rootProfileLocation );
657657
mUserProfileManager->setActiveUserProfile( activeProfile );
658658
connect( mUserProfileManager, &QgsUserProfileManager::profilesChanged, this, &QgisApp::refreshProfileMenu );

‎src/core/qgsuserprofilemanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void QgsUserProfileManager::setRootLocation( const QString &rootProfileLocation
6767
mWatcher->removePaths( mWatcher->directories() );
6868
}
6969

70-
if ( QDir( mRootProfilePath ).exists() )
70+
if ( !mRootProfilePath.isEmpty() && QDir( mRootProfilePath ).exists() )
7171
{
7272
mWatcher->addPath( mRootProfilePath );
7373
}

0 commit comments

Comments
 (0)
Please sign in to comment.