Fix warning

This commit is contained in:
Nyall Dawson 2017-12-07 09:08:28 +10:00
parent 89420fccd6
commit 8e77701288

View File

@ -30,7 +30,7 @@ QgsLayoutQptDropHandler::QgsLayoutQptDropHandler( QObject *parent )
bool QgsLayoutQptDropHandler::handleFileDrop( QgsLayoutDesignerInterface *iface, const QString &file )
{
QFileInfo fi( file );
if ( !fi.suffix().compare( QLatin1String( "qpt" ), Qt::CaseInsensitive ) == 0 )
if ( fi.suffix().compare( QLatin1String( "qpt" ), Qt::CaseInsensitive ) != 0 )
return false;
QFile templateFile( file );