[Simulator] Fix startup when using a new file for radio data (file is now properly created, errors from Storage are ignored); Do not start simulator at all in case of data errors; Fix startup option dialog when finding radio type from profile for first time; Fix RadioOptions struct version control; Cleanup unused WinConsole code; Fix a warning and a missing const reference; Move ~SimulatedUIWidget() to public.

This commit is contained in:
Max Paperno
2017-01-28 19:15:46 -05:00
parent 32dc0dd2a0
commit fae095ea18
9 changed files with 54 additions and 52 deletions
+2 -2
View File
@@ -65,12 +65,12 @@ class LcdWidget : public QWidget
memset(previousBuf, 0, lcdSize);
}
void setBgDefaultColor(QColor color)
void setBgDefaultColor(const QColor & color)
{
bgDefaultColor = color;
}
void setBackgroundColor(QColor color)
void setBackgroundColor(const QColor & color)
{
bgColor = color;
}
@@ -104,7 +104,7 @@ class RadioSwitchWidget : public RadioWidget
void setToggleLocked(bool lock)
{
if (m_flags != lock) {
if (m_flags != (quint16)lock) {
m_flags = lock;
setValue((int)lock);
emit flagsChanged(m_flags);