From 41bd078a2ab7508104a54ed6b2905fc72e7568e0 Mon Sep 17 00:00:00 2001 From: Julian Depetris Chauvin Date: Sun, 29 May 2011 21:44:12 -0300 Subject: [PATCH] make ESC minimizes the main window when tray icon is totally disabled. --- mainwindow.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mainwindow.cc b/mainwindow.cc index 95c48c09..609367e6 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -1176,7 +1176,12 @@ void MainWindow::handleEsc() return; if( cfg.preferences.escKeyHidesMainWindow ) - on_actionCloseToTray_activated(); + { + if( cfg.preferences.enableTrayIcon ) + hide(); + else + showMinimized(); + } else focusTranslateLine(); }