--- a/src/configDialog.cc Sun Jul 13 20:28:52 2014 +0300 +++ b/src/configDialog.cc Sun Jul 13 20:40:24 2014 +0300 @@ -397,7 +397,7 @@ ui->quickColorList->addItem (item); quickColorItems << item; - if (sel && &entry == sel) + if (sel and &entry == sel) { ui->quickColorList->setCurrentItem (item); ui->quickColorList->scrollToItem (item); @@ -477,7 +477,7 @@ int idx = getItemRow (item, quickColorItems); int dest = up ? (idx - 1) : (idx + 1); - if (dest < 0 || dest >= quickColorItems.size()) + if (dest < 0 or dest >= quickColorItems.size()) return; // destination out of bounds LDQuickColor tmp = quickColors[dest];