Commit 312ee5fd authored by Thomas Hartmann's avatar Thomas Hartmann

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
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment