Skip to content

Commit

Permalink
FIX #31036 Remove color scheme doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus authored and nyalldawson committed Mar 19, 2020
1 parent b5f2cff commit c1620d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgscolorscheme.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit c1620d3

Please sign in to comment.