From 704e6004a7016f2f88ec036a864d9aedeafc5c15 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Wed, 19 Mar 2008 20:04:49 +0000 Subject: [PATCH] Explain warnings. svn path=/trunk/KDE/kdebase/apps/konsole/; revision=787747 --- src/Session.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Session.cpp b/src/Session.cpp index e02d020b..36c257b5 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -327,10 +327,12 @@ void Session::run() break; } + // if a program was specified via setProgram(), but it couldn't be found, print a warning if (choice != 0 && choice < CHOICE_COUNT && !_program.isEmpty()) { terminalWarning(i18n("Could not find '%1', starting '%2' instead. Please check your profile settings.",_program,exec)); } + // if none of the choices are available, print a warning else if (choice == CHOICE_COUNT) { terminalWarning(i18n("Could not find an interactive shell to start."));