Skip to content
Permalink
Browse files

Avoid qt warning when dragging a non-color object over color buttons

  • Loading branch information
nyalldawson committed Sep 22, 2020
1 parent 0b77f18 commit fd771bba68da84b1ce8023898b9662b5dc619693
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/symbology/qgssymbollayerutils.cpp
@@ -3261,6 +3261,9 @@ QMimeData *QgsSymbolLayerUtils::colorToMimeData( const QColor &color )

QColor QgsSymbolLayerUtils::colorFromMimeData( const QMimeData *mimeData, bool &hasAlpha )
{
if ( !mimeData->hasColor() )
return QColor();

//attempt to read color data directly from mime
QColor mimeColor = mimeData->colorData().value<QColor>();
if ( mimeColor.isValid() )

0 comments on commit fd771bb

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