mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-01-27 15:35:22 +00:00
NOISSUE fix build more
QUrlQuery does not accept initializer lists in Qt 5.4...
This commit is contained in:
parent
009abd5d94
commit
7bd22bc4e5
@ -87,7 +87,9 @@ void MSALoginDialog::showVerificationUriAndCode(const QUrl& uri, const QString&
|
||||
ui->progressBar->setVisible(true);
|
||||
|
||||
m_codeUrl = uri;
|
||||
m_codeUrl.setQuery(QUrlQuery({{"otc", code}}));
|
||||
QUrlQuery query;
|
||||
query.addQueryItem("otc", code);
|
||||
m_codeUrl.setQuery(query);
|
||||
QString codeUrlString = m_codeUrl.toString();
|
||||
|
||||
QImage qrcode = qrcode::generateQr(codeUrlString, 300);
|
||||
|
Loading…
x
Reference in New Issue
Block a user