Skip to content
Snippets Groups Projects
Commit 312ee5fd authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.ImportManager: Fix comparison operator


The comparison operator was not consistent if comparing the same url.
This could trigger an assert for msvc debug builds.

Change-Id: Ia9febd7ffd7d0f4dbb64184931a526e61f020672
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 1c6394b8
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,9 @@ void ImportsWidget::removeUsedImports()
static bool importLess(const Import &firstImport, const Import &secondImport)
{
if (firstImport.url() == secondImport.url())
return firstImport.toString() < secondImport.toString();
if (firstImport.url() == "QtQuick")
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment