Changeset View
Changeset View
Standalone View
Standalone View
krusader/BookMan/krbookmarkhandler.cpp
Context not available. | |||||
538 | { | 538 | { | ||
---|---|---|---|---|---|
539 | if (obj->inherits("QMenu") && (ev->type() == QEvent::Show || | 539 | if (obj->inherits("QMenu") && (ev->type() == QEvent::Show || | ||
540 | ev->type() == QEvent::Close)) { | 540 | ev->type() == QEvent::Close)) { | ||
541 | _setQuickSearchText(""); | 541 | // When a folder that was previously opened and then closed | ||
542 | // looses focus it sends out Qt::close events. | ||||
543 | // If we reset on those events we'll accidentaly reset | ||||
544 | // searches in the parent menu | ||||
545 | if (static_cast<QMenu*>(obj)->isVisible()) { | ||||
546 | _setQuickSearchText(""); | ||||
547 | } | ||||
548 | return QObject::eventFilter(obj, ev); | ||||
542 | } | 549 | } | ||
543 | 550 | | |||
544 | // Having it occur on keypress is consistent with other shortcuts, | 551 | // Having it occur on keypress is consistent with other shortcuts, | ||
Context not available. |