Commit 27c87624 authored by Eike Ziller's avatar Eike Ziller
Browse files

Terminal setting: Fix placeholder text



Placeholder text should show the default.

Change-Id: I584f13b5a38d1b80b23f777cc53b0e2a1f8bd0bf
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent f4983975
......@@ -116,10 +116,9 @@ QWidget *GeneralSettings::createPage(QWidget *parent)
QSettings *settings = Core::ICore::settings();
const QStringList availableTerminals = ConsoleProcess::availableTerminalEmulators();
const QString currentTerminal = ConsoleProcess::terminalEmulator(settings, false);
const QString currentTerminalExplicit = ConsoleProcess::terminalEmulator(settings, true);
m_page->terminalComboBox->addItems(availableTerminals);
m_page->terminalComboBox->lineEdit()->setText(currentTerminal);
m_page->terminalComboBox->lineEdit()->setPlaceholderText(currentTerminalExplicit);
m_page->terminalComboBox->lineEdit()->setPlaceholderText(ConsoleProcess::defaultTerminalEmulator());
} else {
m_page->terminalLabel->hide();
m_page->terminalComboBox->hide();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment