Enable GitHub fields correctly on MAC

This commit is contained in:
NissimHadar 2018-11-08 08:37:44 -08:00
parent 91fb592d3f
commit dd7ce2cfff

View file

@ -97,7 +97,12 @@ void AutoTester::startTestsEvaluation(const bool isRunningFromCommandLine,
}
void AutoTester::on_tabWidget_currentChanged(int index) {
// Enable the GitHub edit boxes as required
#ifdef Q_OS_WIN
if (index == 0 || index == 2 || index == 3) {
#elif defined Q_OS_MAC
if (index == 0 || index == 1 || index == 2) {
#endif
_ui.userLineEdit->setDisabled(false);
_ui.branchLineEdit->setDisabled(false);
} else {
@ -307,4 +312,4 @@ void AutoTester::updateStatusLabel(const QString& status) {
void AutoTester::appendLogWindow(const QString& message) {
_ui.plainTextEdit->appendPlainText(message);
}
}