From f978ef01f8d49e046e04a6cb9d64e6c6d4c573fe Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Mon, 29 Mar 2010 03:37:36 +0000 Subject: [PATCH] Do not show dialog if there are no entries --- ede-autostart/ede-autostart.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ede-autostart/ede-autostart.cpp b/ede-autostart/ede-autostart.cpp index d7b8529..9725db2 100644 --- a/ede-autostart/ede-autostart.cpp +++ b/ede-autostart/ede-autostart.cpp @@ -296,6 +296,9 @@ static void perform_autostart(bool safe) { entry_list.push_back(en); } + if(entry_list.empty()) + return; + if(safe) run_autostart_dialog(entry_list); else