]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/filterbar.cpp
allow to disable the preview of the Information Panel
[dolphin.git] / src / filterbar.cpp
index a16df75aa4027573aa5dc0ce59859d1f6e649b0e..7becada99b27cc8baed82cec33ea6083ff04a5f0 100644 (file)
@@ -76,7 +76,11 @@ void FilterBar::keyReleaseEvent(QKeyEvent* event)
 {
     QWidget::keyReleaseEvent(event);
     if ((event->key() == Qt::Key_Escape)) {
-        emit closeRequest();
+        if (m_filterInput->text().isEmpty()) {
+            emit closeRequest();
+        } else {
+            m_filterInput->clear();
+        }
     }
 }