From 75142b0a63279bac1e0b276edbf48ba3cea62862 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Fri, 29 Dec 2017 19:29:23 +0100 Subject: cleanup: less than operators shall not use equal See also commit c032006d91ee3c. Compare functions passed to sort functions need to compare for less-than and not less-or-equal. Signed-off-by: Jan Mulder --- desktop-widgets/preferences/preferencesdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/preferences') diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp index 50a0049ac..49b1f87bd 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -90,7 +90,7 @@ void PreferencesDialog::buttonClicked(QAbstractButton* btn) bool abstractpreferenceswidget_lessthan(AbstractPreferencesWidget *p1, AbstractPreferencesWidget *p2) { - return p1->positionHeight() <= p2->positionHeight(); + return p1->positionHeight() < p2->positionHeight(); } void PreferencesDialog::addPreferencePage(AbstractPreferencesWidget *page) -- cgit v1.2.3-70-g09d2