From add35c0095c0b9bbccaa63a5108dcc15038fff77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 28 Nov 2007 19:34:22 +0000 Subject: [PATCH] Don't restart in a never-ending loop, just exit on cancel. svn path=/trunk/KDE/kdebase/workspace/; revision=742729 --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index f8870a0d59..f1553918bf 100644 --- a/main.cpp +++ b/main.cpp @@ -193,6 +193,8 @@ Application::Application( ) { cmd = dialog.selectedWM(); } + else + ::exit(1); if( cmd.length() > 500 ) { kDebug() << "Command is too long, truncating";