diff options
author | Markus Goetz <markus@woboq.com> | 2014-04-06 21:34:56 +0400 |
---|---|---|
committer | Markus Goetz <markus@woboq.com> | 2014-04-21 21:57:15 +0400 |
commit | 77ac0929751ce4576a31cccdd87af7cd2aab1626 (patch) | |
tree | e340e14d6176047fb92685fe98eda9a1f99a567e /src/creds | |
parent | 934eda128bd5a1ad4e21611a3bb9b801a2a65750 (diff) |
WiP: Attempt to compile without UI
Diffstat (limited to 'src/creds')
-rw-r--r-- | src/creds/tokencredentials.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/creds/tokencredentials.cpp b/src/creds/tokencredentials.cpp index fe3cf457f..0804cc5d4 100644 --- a/src/creds/tokencredentials.cpp +++ b/src/creds/tokencredentials.cpp @@ -17,8 +17,6 @@ #include <QDebug> #include <QNetworkReply> #include <QSettings> -#include <QInputDialog> - #include "mirall/account.h" #include "mirall/mirallaccessmanager.h" @@ -179,17 +177,7 @@ bool TokenCredentials::stillValid(QNetworkReply *reply) QString TokenCredentials::queryPassword(bool *ok) { - qDebug() << AccountManager::instance()->account()->state(); - if (ok) { - QString str = QInputDialog::getText(0, tr("Enter Password"), - tr("Please enter %1 password for user '%2':") - .arg(Theme::instance()->appNameGUI(), _user), - QLineEdit::Password, QString(), ok); - qDebug() << AccountManager::instance()->account()->state(); - return str; - } else { - return QString(); - } + return QString(); } void TokenCredentials::invalidateToken(Account *account) |