Skip to content

Commit

Permalink
修复无法自动登陆的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CHN-STUDENT authored Oct 18, 2017
1 parent a24de09 commit f038a15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions srun-3k-ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,14 @@ void MainWindow::GET_INFO_Finished(QNetworkReply *reply)
state=0;
QTimer::singleShot(10000,[this](){//10s后自动跳转
if(ui->stackedWidget->currentIndex()==1)
{
ui->stackedWidget->setCurrentIndex(2);
if(ui->AUTO_LOGIN->isChecked())
{
ui->LoginButton->setEnabled(true);
ui->LoginButton->click();
}
}
});
}
else
Expand Down

0 comments on commit f038a15

Please sign in to comment.