diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-10-30 10:34:33 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-10-30 10:35:48 (GMT) |
commit | 443b7759b8c59108b13ac55d20fdfe9d12ca4e79 (patch) | |
tree | 876841d4c57647634880c24af1542b9c1e569339 /Swift/QtUI | |
parent | 06e40dd580e43e11e519acbb2d30156c18081f79 (diff) | |
download | swift-contrib-443b7759b8c59108b13ac55d20fdfe9d12ca4e79.zip swift-contrib-443b7759b8c59108b13ac55d20fdfe9d12ca4e79.tar.bz2 |
Fix eagle mode asking to save password after signout
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtLoginWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index 87dd849..e339d79 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -311,19 +311,20 @@ void QtLoginWindow::loggedOut() { } void QtLoginWindow::setIsLoggingIn(bool loggingIn) { /* Change the for loop as well if you add to this.*/ QWidget* widgets[5] = {username_, password_, remember_, loginAutomatically_, certificateButton_}; loginButton_->setText(loggingIn ? tr("Cancel") : tr("Connect")); for (int i = 0; i < 5; i++) { widgets[i]->setEnabled(!loggingIn); } - + remember_->setEnabled(!eagleMode_); + loginAutomatically_->setEnabled(!eagleMode_); } void QtLoginWindow::loginClicked() { if (username_->isEnabled()) { if (eagleMode_) { QString clickThroughPath(P2QSTRING((Paths::getExecutablePath() / "eagle-banner.txt").string())); QFile clickThroughFile(clickThroughPath); if (clickThroughFile.exists() && clickThroughFile.open(QIODevice::ReadOnly)) { QString banner; |