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 60ab970 commit 05d783e759f445e43552c8b35f2ee449e0e1fd94
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 05d783e

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