void CategorizedCombo::showPopup()
{
+ lastCurrentIndex_ = currentIndex();
bool enabled = view()->updatesEnabled();
view()->setUpdatesEnabled(false);
case Qt::Key_Escape:
if (!modified && !d->filter_.isEmpty()) {
d->resetFilter();
+ setCurrentIndex(lastCurrentIndex_);
return true;
}
break;
void LayoutBox::showPopup()
{
+ lastCurrentIndex_ = currentIndex();
d->owner_.message(_("Enter characters to filter the layout list."));
bool enabled = view()->updatesEnabled();
case Qt::Key_Escape:
if (!modified && !d->filter_.isEmpty()) {
d->resetFilter();
+ setCurrentIndex(lastCurrentIndex_);
return true;
}
break;