Commit 3a851daf authored by con's avatar con
Browse files

Activating Locator when already in the locator window didn't work.

For example when you typed Ctrl+l and find that you don't want to use
the goto line filter after all.
parent 2f7b3e12
......@@ -129,7 +129,7 @@ bool QuickOpenPlugin::initialize(const QStringList &, QString *)
void QuickOpenPlugin::openQuickOpen()
{
m_quickOpenToolWindow->setFocus();
m_quickOpenToolWindow->show("");
}
void QuickOpenPlugin::extensionsInitialized()
......
......@@ -438,7 +438,8 @@ void QuickOpenToolWindow::acceptCurrentEntry()
void QuickOpenToolWindow::show(const QString &text, int selectionStart, int selectionLength)
{
m_fileLineEdit->hideHintText();
m_fileLineEdit->setText(text);
if (!text.isEmpty())
m_fileLineEdit->setText(text);
if (!m_fileLineEdit->hasFocus())
m_fileLineEdit->setFocus();
else
......@@ -447,7 +448,7 @@ void QuickOpenToolWindow::show(const QString &text, int selectionStart, int sele
if (selectionStart >= 0)
m_fileLineEdit->setSelection(selectionStart, selectionLength);
else
m_fileLineEdit->deselect();
m_fileLineEdit->selectAll();
}
void QuickOpenToolWindow::filterSelected()
......
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