Commit 50d749cb authored by Piotr Henryk Dabrowski's avatar Piotr Henryk Dabrowski
Browse files

This code triggers this breeze issue:

plasma/breeze#2

Use Alt+AnyKey shortcut to KComboBox::setEditable(true)
parent 3c895f8a
......@@ -694,7 +694,7 @@ void KFileWidget::setFilter(const QString &filter)
d->ops->setNameFilter(d->filterWidget->currentFilter());
d->ops->updateDir();
d->hasDefaultFilter = false;
d->filterWidget->setEditable(true);
d->filterWidget->setEditable(/*true*/ false);
d->updateAutoSelectExtension();
}
......@@ -718,8 +718,8 @@ void KFileWidget::setMimeFilter(const QStringList &mimeTypes,
d->ops->clearFilter();
d->ops->setMimeFilter(types);
d->hasDefaultFilter = !defaultType.isEmpty();
d->filterWidget->setEditable(!d->hasDefaultFilter ||
d->operationMode != Saving);
d->filterWidget->setEditable(/*!d->hasDefaultFilter ||
d->operationMode != Saving*/ false);
d->updateAutoSelectExtension();
d->updateFilterText();
......@@ -730,7 +730,7 @@ void KFileWidget::clearFilter()
d->filterWidget->setFilter(QString());
d->ops->clearFilter();
d->hasDefaultFilter = false;
d->filterWidget->setEditable(true);
d->filterWidget->setEditable(/*true*/ false);
d->updateAutoSelectExtension();
}
......@@ -1907,6 +1907,7 @@ bool KFileWidget::eventFilter(QObject *watched, QEvent *event)
d->ops->actionCollection()->action(QStringLiteral("forward"))->trigger();
break;
default:
d->filterWidget->setEditable(true);
break;
}
}
......@@ -2088,7 +2089,7 @@ void KFileWidget::setOperationMode(OperationMode mode)
d->operationMode = mode;
d->keepLocation = (mode == Saving);
d->filterWidget->setEditable(!d->hasDefaultFilter || mode != Saving);
d->filterWidget->setEditable(/*!d->hasDefaultFilter || mode != Saving*/ false);
if (mode == Opening) {
// don't use KStandardGuiItem::open() here which has trailing ellipsis!
d->okButton->setText(i18n("&Open"));
......
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