summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-29 19:29:23 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-29 13:16:58 -0800
commit75142b0a63279bac1e0b276edbf48ba3cea62862 (patch)
treed6f816be0a1053f3645519e23f9561153d1ec2ec /desktop-widgets/preferences
parentf74308bed40e2d463d8b4ed5e57dc56220b65bcc (diff)
downloadsubsurface-75142b0a63279bac1e0b276edbf48ba3cea62862.tar.gz
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 <jlmulder@xs4all.nl>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r--desktop-widgets/preferences/preferencesdialog.cpp2
1 files changed, 1 insertions, 1 deletions
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)