Skip to content
Permalink
Browse files

FIX #31036 Remove color scheme doesn't work

  • Loading branch information
github-actions authored and nyalldawson committed Mar 19, 2020
1 parent ab6ce8f commit 435838a85397fc4dd7a63237ed935f7375cec851
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgscolorscheme.cpp
@@ -356,6 +356,12 @@ bool QgsUserColorScheme::erase()
return false;
}

// if file does not exist, nothing to do on the disk, so we can consider erasing done
if ( ! QFile::exists( filePath ) )
{
return true;
}

//try to erase gpl file
return QFile::remove( filePath );
}

0 comments on commit 435838a

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