From 00e14ee24809be89b1e4db2395cc6263e410ca64 Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" Date: Thu, 21 Nov 2013 00:25:22 +0100 Subject: [PATCH] Don't add empty process items to list of currently running processes in a window --- src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 1638201d..964c2774 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -535,6 +535,10 @@ bool MainWindow::queryClose() const QString defaultProc = session->program().split('/').last(); const QString currentProc = session->foregroundProcessName().split('/').last(); + + if (currentProc.isEmpty()) + continue; + if (defaultProc != currentProc) { processesRunning.append(currentProc); }