Skip to content

Commit

Permalink
m: Check board from conf
Browse files Browse the repository at this point in the history
  • Loading branch information
ElTh0r0 committed Jul 21, 2023
1 parent a5b5350 commit e9a083b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,11 @@ void Settings::readSettings() {
m_sBoardExtension);
m_sBoard =
m_pSettings->value(QStringLiteral("Board"), sDefaultBoard).toString();
if (!QFile::exists(m_sBoard)) {
qWarning() << "Board from conf file not found:" << m_sBoard;
qWarning() << "Switching to default board!";
m_sBoard = sDefaultBoard;
}
if (m_sListBoards.contains(m_sBoard)) {
m_pUi->cbBoard->setCurrentIndex(m_sListBoards.indexOf(m_sBoard));
} else {
Expand Down

0 comments on commit e9a083b

Please sign in to comment.