browsertab.cpp: Use multi-line input when required

Some Gemini sites such as Station or BBS allow multi-line posts.
This commit is contained in:
Xavier Del Campo Romero 2023-08-05 02:33:02 +02:00 committed by Felix Queißner
parent 3709c3d6bd
commit 505723e9df
1 changed files with 1 additions and 0 deletions

View File

@ -870,6 +870,7 @@ void BrowserTab::on_inputRequired(const QString &query, const bool is_sensitive)
QInputDialog dialog{this};
dialog.setInputMode(QInputDialog::TextInput);
dialog.setOption(QInputDialog::UsePlainTextEditForTextInput);
dialog.setLabelText(query);
if (is_sensitive) dialog.setTextEchoMode(QLineEdit::Password);