mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Logical operator is && not "and" in C++
.. bit of a brain fart that g++ clearly allows, whilst MSVC doesn't.
This commit is contained in:
@@ -138,7 +138,7 @@ GColorDialog::GColorDialog(QColor selected, QWidget *parent) : QDialog(parent),
|
||||
tabwidget->addTab(colordialog, tr("Custom"));
|
||||
|
||||
// set the default to the current selection
|
||||
if (original.red() == 1 and original.green() == 1) {
|
||||
if (original.red() == 1 && original.green() == 1) {
|
||||
tabwidget->setCurrentIndex(0);
|
||||
colorlist->setCurrentItem(colorlist->invisibleRootItem()->child(original.blue()));
|
||||
colordialog->setCurrentColor(GColor(original.blue()));
|
||||
|
||||
Reference in New Issue
Block a user