From f4d45b48cdae9c9b90ecd7c02a6a735ca11f10aa Mon Sep 17 00:00:00 2001 From: q5sys Date: Thu, 5 Jan 2017 18:29:37 -0500 Subject: enable ESC to clear search field and reset view to all pages --- src-qt5/core-utils/lumina-config/mainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-qt5/core-utils/lumina-config/mainWindow.cpp') diff --git a/src-qt5/core-utils/lumina-config/mainWindow.cpp b/src-qt5/core-utils/lumina-config/mainWindow.cpp index d3d864fe..ebce647f 100644 --- a/src-qt5/core-utils/lumina-config/mainWindow.cpp +++ b/src-qt5/core-utils/lumina-config/mainWindow.cpp @@ -143,8 +143,8 @@ void mainWindow::on_actionSave_triggered(){ } void mainWindow::on_actionBack_triggered(){ - if(cpage.isEmpty()){ }// page_main::clearlineEdit(); } //since ESC doesnt close any other Lumina Appliction by default, I've commented this out for the time being. - else{ page_change(""); } //Use the interactive wrapper (check for save state, etc). + if(cpage.isEmpty()){ static_cast( this->centralWidget() )->clearlineEdit(); } + else{ page_change(""); } //Use the interactive wrapper (check for save state, etc). } void mainWindow::on_quitShortcut_Triggered(){ -- cgit