From daec8b541158646b6e8b7576b2f3fa9df63cbaec Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Tue, 9 Oct 2012 00:08:05 +0200 Subject: [PATCH] Give the user an error message At least he'll understand why everything looks so bad --- shell/shell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/shell.cpp b/shell/shell.cpp index 29068d093..7468c742d 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -109,6 +109,10 @@ void Shell::init() if (m_openUrl.isValid()) QTimer::singleShot(0, this, SLOT(delayedOpen())); } + else + { + KMessageBox::error(this, i18n("Unable to find the Okular component.")); + } } void Shell::delayedOpen()