Skip to content
Permalink
Browse files

FIX #31036 Remove color scheme doesn't work

  • Loading branch information
suricactus authored and nyalldawson committed Mar 17, 2020
1 parent b5f2cff commit c1620d3ffe5891fb9a19efaa98ac50b1b602f232
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 c1620d3

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